Function at 0x4012f0
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x428152
mov eax, dword fs:[0]
push eax
sub esp, 0x2a0
mov eax, dword [0x432b60]
xor eax, esp
mov dword [esp + 0x298], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x432b60]
xor eax, esp
push eax
lea eax, [esp + 0x2b4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2c4]
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov edi, 0xf
push ebp
lea ecx, [esp + 0x70]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x88], edi
mov dword [esp + 0x84], ebx
mov byte [esp + 0x74], bl
call fcn.00405ed0
push ebx
push 0x434020
or eax, 0xffffffff
lea esi, [esp + 0x6c]
mov dword [esp + 0x2c4], ebx
call fcn.004048a0
cmp dword [esp + 0x7c], 0x10
mov eax, dword [esp + 0x68]
jae 0x401384
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.imagehlp.dll_MakeSureDirectoryPathExists]
push ebx
push 0x43403c
or eax, 0xffffffff
lea esi, [esp + 0x6c]
call fcn.004048a0
push 0xffffffffffffffff
push ebx
push ebp
lea ecx, [esp + 0x54]
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
call fcn.00405ed0
push ebx
push 0x434004
or eax, 0xffffffff
lea esi, [esp + 0x50]
mov byte [esp + 0x2c4], 1
call fcn.004048a0
push ebx
push 0x43403c
or eax, 0xffffffff
call fcn.004048a0
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov eax, esi
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c0], 2
call fcn.00403030
mov edi, eax
cmp edi, ebx
mov dword [esp + 0x34], edi
jne 0x40147a
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40142c
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x1c]
push ecx
push edx
call fcn.00405720
mov eax, dword [esp + 0x20]
push eax
call fcn.00407b33
add esp, 0xc
mov esi, 0x10
cmp dword [esp + 0x60], esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
jb 0x401450
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.00407b33
add esp, 4
cmp dword [esp + 0x7c], esi
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
jb 0x401473
mov edx, dword [esp + 0x68]
push edx
call fcn.00407b33
add esp, 4
xor al, al
jmp 0x401950
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
push 0xffffffffffffffff
mov byte [esp + 0x2c0], 3
push ebx
push ebp
lea ecx, [esp + 0x8c]
mov dword [esp + 0xa4], 0xf
mov dword [esp + 0xa0], ebx
mov byte [esp + 0x90], bl
call fcn.00405ed0
push ebx
push 0x434020
or eax, 0xffffffff
lea esi, [esp + 0x88]
mov byte [esp + 0x2c4], 4
call fcn.004048a0
push ebx
push 0x43403c
or eax, 0xffffffff
call fcn.004048a0
mov eax, esi
push eax
lea ecx, [esp + 0x3c]
call fcn.00403030
push 0x103
lea ecx, [esp + 0xa1]
push ebx
push ecx
mov byte [esp + 0xa8], bl
call fcn.004155a0
add esp, 0xc
push 0x103
lea edx, [esp + 0x1a9]
push ebx
push edx
mov byte [esp + 0x1b0], bl
call fcn.004155a0
add esp, 0xc
xor ebp, ebp
cmp edi, ebx
mov dword [esp + 0x2c], ebx
jle 0x4017a5
xor edi, edi
mov esi, dword [esp + 0x18]
cmp esi, ebx
je 0x40155d
mov ecx, dword [esp + 0x1c]
sub ecx, esi
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x401566
call fcn.0041414e
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x38]
lea eax, [esi + edi]
push ecx
push eax
call fcn.00403eb0
test al, al
je 0x40178b
mov esi, dword [esp + 0x18]
cmp esi, ebx
je 0x4015a1
mov ecx, dword [esp + 0x1c]
sub ecx, esi
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x4015aa
call fcn.0041414e
mov esi, dword [esp + 0x18]
cmp dword [esi + edi + 0x38], 0x10
jb 0x4015b7
mov esi, dword [esi + edi + 0x24]
jmp 0x4015bb
lea esi, [esi + edi + 0x24]
mov ecx, dword [esp + 0x24]
push esi
call fcn.00405ca0
push eax
lea edx, [esp + 0xa4]
push str._s_s
push edx
mov eax, 0x104
call fcn.00404f60
add esp, 0x10
lea eax, [esp + 0x9c]
push eax
call dword [sym.imp.imagehlp.dll_MakeSureDirectoryPathExists]
push 0x42c643
lea ecx, [esp + 0x2c]
call fcn.004067d0
mov byte [esp + 0x2bc], 5
mov esi, dword [esp + 0x18]
cmp esi, ebx
lea ecx, [esp + 0x28]
push ecx
je 0x40162e
mov ecx, dword [esp + 0x20]
sub ecx, esi
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x401637
call fcn.0041414e
mov esi, dword [esp + 0x1c]
cmp dword [esi + edi + 0x18], 0x10
jb 0x401644
mov esi, dword [esi + edi + 4]
jmp 0x401648
lea esi, [esi + edi + 4]
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push esi
call fcn.004067d0
call fcn.00403310
mov esi, dword [esp + 0x18]
cmp esi, ebx
je 0x40167f
mov ecx, dword [esp + 0x1c]
sub ecx, esi
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x401688
call fcn.0041414e
mov esi, dword [esp + 0x18]
cmp dword [esi + edi + 0x38], 0x10
jb 0x401695
mov esi, dword [esi + edi + 0x24]
jmp 0x401699
lea esi, [esi + edi + 0x24]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push edx
push esi
call fcn.00405ca0
push eax
lea eax, [esp + 0xa8]
push str._s_s_s
push eax
mov eax, 0x104
call fcn.00404f60
mov esi, dword [esp + 0x2c]
add esp, 0x14
cmp esi, ebx
je 0x4016e8
mov ecx, dword [esp + 0x1c]
sub ecx, esi
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x4016f1
call fcn.0041414e
mov esi, dword [esp + 0x18]
mov eax, 0x10
cmp dword [esi + edi + 0x38], eax
jb 0x401702
mov esi, dword [esi + edi + 0x24]
jmp 0x401706
lea esi, [esi + edi + 0x24]
cmp dword [0x43401c], eax
mov eax, dword [0x434008]
jae 0x401718
mov eax, 0x434008
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
push esi
push eax
call fcn.00405ca0
push eax
lea edx, [esp + 0x1b4]
push str._s_s_s_s
push edx
mov eax, 0x104
call fcn.00404f60
add esp, 0x18
push ebx
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0x1ac]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x401763
add dword [esp + 0x2c], 1
mov byte [esp + 0x2bc], 4
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40178b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebp, 1
add edi, 0x3c
cmp ebp, dword [esp + 0x34]
jl 0x401538
cmp dword [esp + 0x2c], ebx
jne 0x401884
mov edx, dword [0x434040]
mov ebp, 0x10
cmp dword [0x434054], ebp
jae 0x4017bd
mov edx, 0x434040
cmp dword [0x434038], ebp
mov ecx, dword [0x434024]
jae 0x4017d0
mov ecx, 0x434024
mov edi, dword [esp + 0x24]
cmp dword [edi + 0x18], ebp
lea esi, [edi + 4]
jb 0x4017e0
mov eax, dword [esi]
jmp 0x4017e2
mov eax, esi
push edx
push ecx
push eax
lea ecx, [esp + 0xa8]
push str._s_s_s
push ecx
mov eax, 0x104
call fcn.00404f60
mov edx, dword [0x434040]
add esp, 0x14
cmp dword [0x434054], ebp
jae 0x401812
mov edx, 0x434040
cmp dword [0x43401c], ebp
mov ecx, dword [0x434008]
jae 0x401825
mov ecx, 0x434008
cmp dword [edi + 0x18], ebp
jb 0x40182e
mov eax, dword [esi]
jmp 0x401830
mov eax, esi
push edx
push ecx
push eax
lea edx, [esp + 0x1b0]
push str._s_s_s
push edx
mov eax, 0x104
call fcn.00404f60
add esp, 0x14
push ebx
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0x1ac]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x401889
sub esp, 0x10
mov edx, esp
mov dword [esp + 0x40], esp
push edx
lea ecx, [esp + 0x28]
call fcn.00404350
mov ecx, edi
call fcn.00403b70
jmp 0x401889
mov ebp, 0x10
cmp dword [esp + 0x98], ebp
jb 0x4018a2
mov eax, dword [esp + 0x84]
push eax
call fcn.00407b33
add esp, 4
mov eax, dword [esp + 0x3c]
cmp eax, ebx
mov esi, 0xf
mov dword [esp + 0x98], esi
mov dword [esp + 0x94], ebx
mov byte [esp + 0x84], bl
je 0x4018e0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x40]
push ecx
push edx
call fcn.00405720
mov eax, dword [esp + 0x44]
push eax
call fcn.00407b33
add esp, 0xc
mov eax, dword [esp + 0x18]
cmp eax, ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
je 0x401910
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x1c]
push ecx
push edx
call fcn.00405720
mov eax, dword [esp + 0x20]
push eax
call fcn.00407b33
add esp, 0xc
cmp dword [esp + 0x60], ebp
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
jb 0x40192f
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.00407b33
add esp, 4
cmp dword [esp + 0x7c], ebp
mov dword [esp + 0x60], esi
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
jb 0x40194e
mov edx, dword [esp + 0x68]
push edx
call fcn.00407b33
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x2b4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x298]
xor ecx, esp
call fcn.00414015
add esp, 0x2ac
ret 4