Function at 0x451670
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x522601
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x597f54]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov ebx, 1
push ebx
lea ecx, [esp + 0x20]
mov dword [esp + 0x50], 0
mov dword [esp + 0x1c], 0
call fcn.00410c82
mov dword [esp + 0x4c], ebx
call fcn.004b4151
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4516d3
push 0x80004005
call fcn.004010bd
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov edi, dword [esp + 0x54]
add eax, 0x10
mov dword [edi], eax
mov dword [esp + 0x18], ebx
call fcn.004b4151
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x451703
push 0x80004005
call fcn.004010bd
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x14]
push ecx
mov byte [esp + 0x50], 2
call fcn.0044a7a0
add esp, 4
mov ecx, dword [esp + 0x5c]
test ecx, ecx
mov byte [esp + 0x4c], 3
jne 0x451736
xor eax, eax
jmp 0x45174b
mov eax, ecx
lea esi, [eax + 1]
jmp 0x451740
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x451740
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00402c69
push ebx
push 0x52f0fc
lea ecx, [esp + 0x1c]
call fcn.00402c69
mov ecx, dword [esp + 0x58]
lea edx, [esp + 0x58]
push edx
call fcn.0043b1f0
mov ecx, dword [esp + 0x64]
push ecx
push eax
lea edx, [esp + 0x64]
mov bl, 4
push edx
mov byte [esp + 0x58], bl
call fcn.0040ad38
add esp, 0xc
push eax
mov ecx, edi
mov byte [esp + 0x50], 5
call fcn.00402e5a
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
mov byte [esp + 0x4c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4517bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
mov byte [esp + 0x4c], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4517e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
call fcn.00402e5a
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00402c69
lea edx, [esp + 0x10]
push edx
mov ecx, edi
call fcn.00402e5a
mov esi, dword [esp + 0x60]
test esi, esi
je 0x4518c3
cmp byte [esp + 0x68], 0
je 0x4518c3
mov eax, dword [edi]
push 0
push eax
call fcn.004e434a
add esp, 8
test eax, eax
je 0x4518c3
push esi
lea ecx, [esp + 0x60]
call fcn.00401534
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x70]
mov bl, 6
push ecx
mov byte [esp + 0x58], bl
call fcn.0040acb6
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 7
call fcn.00402e5a
mov eax, dword [esp + 0x68]
add eax, 0xfffffff0
mov byte [esp + 0x4c], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45188e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
mov byte [esp + 0x4c], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4518b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi]
mov ecx, dword [esp + 0x10]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x4c], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4518e8
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
mov byte [esp + 0x4c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45190d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x28]
call fcn.0040290f
mov eax, edi
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x40
ret 0x18