Function at 0x4069f0
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436ee2
mov eax, dword fs:[0]
push eax
mov eax, 0x24d8
call fcn.0041a8b0
mov eax, dword [0x449044]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.Encrypt_Combat_Arms_files
mov dword [ebp - 0x2460], 0
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
xor eax, eax
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 0x2460], 0x80000000
push eax
push 0x104
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00409be0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov edi, dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
push edi
call fcn.0041896a
mov ecx, dword [ebp - 0x18]
mov esi, eax
mov eax, edx
mov dword [ebp - 0x2464], eax
cmp esi, ecx
ja 0x406ab0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], esi
cmovae ecx, dword [ebp - 0x28]
xor edx, edx
mov word [ecx + esi*2], dx
jmp 0x406ac5
mov eax, esi
sub eax, ecx
lea ecx, [ebp - 0x28]
push 0
push eax
call fcn.00409be0
mov eax, dword [ebp - 0x2464]
cmp esi, edi
jae 0x406a74
mov byte [ebp - 4], 0
test eax, eax
jne 0x407829
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
push ecx
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
call fcn.0040a360
add esp, 4
test eax, eax
jne 0x407835
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x406b34
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x406b2a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407845
push ecx
push edx
call fcn.00419b47
add esp, 8
mov ecx, dword [ebp - 0x44]
xorps xmm0, xmm0
movlpd qword [ebp - 0x50], xmm0
test ecx, ecx
je 0x406b47
lock inc dword [ecx + 4]
mov esi, dword [ebp - 0x48]
mov edi, ecx
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], edi
test ecx, ecx
je 0x406b5a
lock inc dword [ecx + 4]
movlpd qword [ebp - 0x58], xmm0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
test ecx, ecx
je 0x406b91
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x406b91
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x44]
or eax, 0xffffffff
lock xadd dword [ecx + 8], eax
jne 0x406b91
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
test esi, esi
je 0x407770
xor edi, edi
nop
lea eax, [esi + 0x20]
lea ecx, [ebp - 0x2484]
mov dword [ebp - 0x2468], eax
push ecx
mov ecx, eax
call fcn.00402760
push ecx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
push ecx
mov ecx, eax
call fcn.0040a140
or edi, 1
mov dword [ebp - 0x2464], edi
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x2470]
cmp ecx, 8
jb 0x406c14
mov edx, dword [ebp - 0x2484]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x406c0a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407845
push ecx
push edx
call fcn.00419b47
add esp, 8
mov edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
mov esi, dword [ebp - 0x18]
xor eax, eax
cmp dword [ebp - 0x14], 0x10
mov dword [ebp - 0x2474], 0
setae byte [ebp - 0x2459]
mov dword [ebp - 0x2470], 7
cmovae ecx, edx
mov word [ebp - 0x2484], ax
mov dword [ebp - 0x2460], edx
cmp esi, 4
jne 0x406cba
mov edi, esi
mov edx, str..TXT
sub edi, esi
jb 0x406c71
nop
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x406c76
add ecx, 4
add edx, 4
sub edi, 4
jae 0x406c60
cmp edi, 0xfffffffc
je 0x406caa
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x406ca3
cmp edi, 0xfffffffd
je 0x406caa
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x406ca3
cmp edi, 0xfffffffe
je 0x406caa
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x406ca3
cmp edi, 0xffffffff
je 0x406caa
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x406caa
sbb eax, eax
or eax, 1
jmp 0x406cac
xor eax, eax
test eax, eax
je 0x406da4
mov edx, dword [ebp - 0x2460]
mov al, byte [ebp - 0x2459]
lea ecx, [ebp - 0x28]
test al, al
cmovne ecx, edx
cmp esi, 4
jne 0x406d34
mov edi, esi
mov edx, str..XML
sub edi, esi
jb 0x406ce9
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x406cee
add ecx, 4
add edx, 4
sub edi, 4
jae 0x406cd8
cmp edi, 0xfffffffc
je 0x406d22
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x406d1b
cmp edi, 0xfffffffd
je 0x406d22
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x406d1b
cmp edi, 0xfffffffe
je 0x406d22
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x406d1b
cmp edi, 0xffffffff
je 0x406d22
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x406d22
sbb eax, eax
or eax, 1
jmp 0x406d24
xor eax, eax
test eax, eax
je 0x406da4
mov edx, dword [ebp - 0x2460]
mov al, byte [ebp - 0x2459]
test al, al
lea ecx, [ebp - 0x28]
cmovne ecx, edx
cmp esi, 4
jne 0x40770b
mov edx, str..CFG
sub esi, esi
jb 0x406d61
nop
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x406d66
add ecx, 4
add edx, 4
sub esi, 4
jae 0x406d50
cmp esi, 0xfffffffc
je 0x406d9a
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x406d93
cmp esi, 0xfffffffd
je 0x406d9a
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x406d93
cmp esi, 0xfffffffe
je 0x406d9a
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x406d93
cmp esi, 0xffffffff
je 0x406d9a
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x406d9a
sbb eax, eax
or eax, 1
jmp 0x406d9c
xor eax, eax
test eax, eax
jne 0x407705
mov esi, dword [ebp - 0x2468]
lea eax, [ebp - 0x24e4]
push eax
mov ecx, esi
call fcn.004026a0
push ecx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xa
push ecx
mov ecx, eax
call fcn.0040a140
mov edi, dword [ebp - 0x2464]
or edi, 0x200
sub esp, 8
mov byte [ebp - 4], 0xb
mov eax, esp
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x249c]
mov dword [eax], str.Encrypt_Combat_Arms_files___
mov dword [eax + 4], 0x1e
call fcn.0040ab40
add esp, 8
cmp dword [eax + 0x14], 0x10
jb 0x406e03
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov ecx, dword [ebp - 0x2488]
cmp ecx, 0x10
jb 0x406e44
mov edx, dword [ebp - 0x249c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406e3a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407845
push ecx
push edx
call fcn.00419b47
add esp, 8
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x248c], 0
mov dword [ebp - 0x2488], 0xf
mov byte [ebp - 0x249c], 0
cmp ecx, 0x10
jb 0x406e97
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406e8d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407845
push ecx
push edx
call fcn.00419b47
add esp, 8
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x24d0]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp ecx, 8
jb 0x406eed
mov edx, dword [ebp - 0x24e4]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x406ee3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407845
push ecx
push edx
call fcn.00419b47
add esp, 8
lea eax, [ebp - 0x24e4]
mov ecx, esi
push eax
call fcn.004026a0
push ecx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xc
push ecx
mov ecx, eax
call fcn.0040a140
or edi, 0x4000
sub esp, 8
mov byte [ebp - 4], 0xd
mov eax, esp
lea ecx, [ebp - 0x40]
mov dword [eax], str.Encrypting:__n
mov dword [eax + 4], 0xf
call fcn.0040abb0
mov byte [ebp - 4], 0xc
add esp, 8
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0x10
jb 0x406f6a
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406f60
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407845
push ecx
push edx
call fcn.00419b47
add esp, 8
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x24d0]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp ecx, 8
jb 0x406fc0
mov edx, dword [ebp - 0x24e4]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x406fb6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407845
push ecx
push edx
call fcn.00419b47
add esp, 8
push 0x2298
lea eax, [ebp - 0x22f0]
push 0
push eax
call fcn.0041b4f0
add esp, 4
lea ecx, [ebp - 0x22f0]
call fcn.00406490
push 0xb8
lea eax, [ebp - 0x23a8]
push 0
push eax
call fcn.0041b4f0
mov eax, dword [ebp - 0x2468]
add esp, 0xc
mov esi, eax
cmp dword [eax + 0x14], 8
jb 0x407007
mov esi, dword [eax]
mov dword [ebp - 0x23a8], 0x444ae0
mov dword [ebp - 0x2330], 0
mov dword [ebp - 0x2310], 0
mov dword [ebp - 0x230c], 0
mov dword [ebp - 0x2308], 0
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x2398]
push 0
xorps xmm0, xmm0
mov dword [ebp - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
or edi, 0x80
mov dword [ebp - 0x233c], 0x58
push eax
lea ecx, [ebp - 0x2338]
mov dword [ebp - 0x2460], edi
movlpd qword [ebp - 0x23a0], xmm0
call fcn.0040b960
mov dword [ebp - 4], 0x10
mov eax, dword [ebp - 0x23a8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x23a8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x23ac], eax
lea ecx, [ebp - 0x2398]
call fcn.0040b750
push ecx
push 0x21
push esi
lea ecx, [ebp - 0x2398]
mov byte [ebp - 4], 0x11
call fcn.0040b580
test eax, eax
jne 0x4070f5
mov eax, dword [ebp - 0x23a8]
lea ecx, [ebp - 0x23a8]
push 0
add ecx, dword [eax + 4]
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.004020a0
mov eax, dword [ebp - 0x23a8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x23a8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x23ac], eax
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x23a8]
mov eax, dword [ecx + 4]
test byte [ebp + eax - 0x239c], 6
jne 0x407690
mov byte [ebp - 0x246c], 0
lea ecx, [ebp - 0x2484]
push dword [ebp - 0x246c]
call fcn.0040d120
add esp, 4
mov esi, dword [ebp - 0x2468]
lea eax, [ebp - 0x249c]
push eax
mov ecx, esi
mov byte [ebp - 4], 0x13
call fcn.00402560
lea ecx, [ebp - 0x2484]
mov byte [ebp - 4], 0x14
push ecx
mov edx, eax
lea ecx, [ebp - 0x40]
call fcn.00402820
add esp, 4
mov byte [ebp - 4], 0x16
mov ecx, dword [ebp - 0x2488]
cmp ecx, 8
jb 0x4071c6
mov edx, dword [ebp - 0x249c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4071bc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407845
push ecx
push edx
call fcn.00419b47
add esp, 8
xor eax, eax
mov dword [ebp - 0x248c], 0
mov dword [ebp - 0x2488], 7
mov word [ebp - 0x249c], ax
mov byte [ebp - 4], 0x17
mov ecx, dword [ebp - 0x2470]
cmp ecx, 8
jb 0x407227
mov edx, dword [ebp - 0x2484]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40721d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407845
push ecx
push edx
call fcn.00419b47
add esp, 8
xor eax, eax
mov dword [ebp - 0x2474], 0
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2470], 7
mov word [ebp - 0x2484], ax
call fcn.00403940
test al, al
jne 0x40735f
lea ecx, [ebp - 0x40]
call fcn.00403ab0
test al, al
jne 0x40735f
sub esp, 8
mov eax, esp
mov dword [eax], str._tcreate_directory_failed..._n
mov dword [eax + 4], 0x1c
call fcn.0040ac20
mov byte [ebp - 4], 0x12
add esp, 8
mov ecx, dword [ebp - 0x2c]
cmp ecx, 8
jb 0x4072bc
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4072b2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407845
push ecx
push edx
call fcn.00419b47
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x23a8]
mov dword [ebp - 0x2c], 7
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x23a8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x23ac], eax
lea ecx, [ebp - 0x2398]
call fcn.004087a0
mov eax, dword [ebp - 0x23a8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x23a8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x23ac], eax
lea eax, [ebp - 0x2338]
mov byte [ebp - 4], 0x18
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.004192ac
mov byte [ebp - 4], 6
add esp, 4
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x407748
mov edx, dword [ebp - 0x28]
inc ecx
jmp 0x407720
push 0xb0
lea eax, [ebp - 0x2458]
push 0
push eax
call fcn.0041b4f0
add esp, 0xc
lea eax, [ebp - 0x24cc]
mov ecx, esi
push eax
call fcn.00402630
mov esi, eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 0x1a
push eax
lea ecx, [ebp - 0x24b4]
call fcn.00402a10
or edi, 0x10000000
lea ecx, [ebp - 0x24b4]
push esi
mov dword [ebp - 0x2460], edi
call fcn.004023a0
cmp dword [ebp - 0x24a0], 8
lea esi, [ebp - 0x24b4]
mov dword [ebp - 0x2458], 0x444820
cmovae esi, dword [ebp - 0x24b4]
mov dword [ebp - 0x23e8], 0
mov dword [ebp - 0x23c8], 0
mov dword [ebp - 0x23c4], 0
mov dword [ebp - 0x23c0], 0
mov byte [ebp - 4], 0x1b
lea eax, [ebp - 0x2454]
push 0
or edi, 0x20000000
mov dword [ebp - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
push eax
lea ecx, [ebp - 0x23f0]
mov dword [ebp - 0x2460], edi
mov dword [ebp - 0x23f4], 0x60
call fcn.0040b960
mov dword [ebp - 4], 0x1d
mov eax, dword [ebp - 0x2458]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x2458]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x245c], eax
lea ecx, [ebp - 0x2454]
call fcn.0040b750
push ecx
push 0x22
push esi
lea ecx, [ebp - 0x2454]
mov byte [ebp - 4], 0x1e
call fcn.0040b580
test eax, eax
jne 0x4074a7
mov eax, dword [ebp - 0x2458]
lea ecx, [ebp - 0x2458]
push 0
add ecx, dword [eax + 4]
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.004020a0
mov eax, dword [ebp - 0x2458]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x2458]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x245c], eax
and edi, 0xefffffff
mov byte [ebp - 4], 0x20
mov ecx, dword [ebp - 0x24a0]
cmp ecx, 8
jb 0x407518
mov edx, dword [ebp - 0x24b4]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40750e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407845
push ecx
push edx
call fcn.00419b47
add esp, 8
xor eax, eax
mov dword [ebp - 0x24a4], 0
mov dword [ebp - 0x24a0], 7
mov word [ebp - 0x24b4], ax
mov byte [ebp - 4], 0x21
mov ecx, dword [ebp - 0x24b8]
cmp ecx, 8
jb 0x407579
mov edx, dword [ebp - 0x24cc]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40756f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407845
push ecx
push edx
call fcn.00419b47
add esp, 8
mov ecx, dword [ebp - 0x2458]
xor eax, eax
mov word [ebp - 0x24cc], ax
mov dword [ebp - 0x24bc], 0
mov dword [ebp - 0x24b8], 7
mov eax, dword [ecx + 4]
test byte [ebp + eax - 0x244c], 6
jne 0x4075c8
lea eax, [ebp - 0x2458]
push eax
lea eax, [ebp - 0x23a8]
push eax
lea ecx, [ebp - 0x22f0]
call fcn.00406930
mov ecx, dword [ebp - 0x2458]
mov eax, dword [ecx + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x2458]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x245c], eax
lea ecx, [ebp - 0x2454]
call fcn.004087a0
mov eax, dword [ebp - 0x2458]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x2458]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x245c], eax
lea eax, [ebp - 0x23f0]
mov byte [ebp - 4], 0x22
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.004192ac
mov byte [ebp - 4], 0x12
add esp, 4
mov ecx, dword [ebp - 0x2c]
cmp ecx, 8
jb 0x407676
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40766c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407845
push ecx
push edx
call fcn.00419b47
add esp, 8
mov ecx, dword [ebp - 0x23a8]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov eax, dword [ecx + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x23a8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x23ac], eax
lea ecx, [ebp - 0x2398]
call fcn.004087a0
mov eax, dword [ebp - 0x23a8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x23a8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x23ac], eax
lea eax, [ebp - 0x2338]
mov byte [ebp - 4], 0x23
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.004192ac
mov edx, dword [ebp - 0x28]
add esp, 4
jmp 0x407711
mov edx, dword [ebp - 0x2460]
mov edi, dword [ebp - 0x2464]
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x407748
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x40773e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407845
push ecx
push edx
call fcn.00419b47
add esp, 8
lea ecx, [ebp - 0x50]
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
call fcn.00403830
mov esi, dword [ebp - 0x50]
test esi, esi
jne 0x406ba0
mov edi, dword [ebp - 0x4c]
test edi, edi
je 0x407796
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x407796
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x407796
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x44]
test esi, esi
je 0x4077c5
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x4077c5
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x4077c5
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
sub esp, 8
mov eax, esp
mov dword [eax], str.press_enter_to_exit_console..._n
mov dword [eax + 4], 0x1f
call fcn.0040ac20
mov eax, dword [0x44a370]
add esp, 8
xor edx, edx
mov ecx, dword [eax + 4]
mov eax, 4
add ecx, 0x44a370
push 0
cmp dword [ecx + 0x38], edx
cmovne eax, edx
push eax
call fcn.004020a0
mov ecx, 0x44a370
call fcn.00408a20
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00419b04
mov esp, ebp
pop ebp
ret
mov edx, eax
mov ecx, str.current_path__
call fcn.004032d0
lea ecx, [ebp - 0x28]
mov edx, eax
push ecx
mov ecx, str.directory_iterator::directory_iterator
call fcn.00403410
call fcn.00421342
int3