Function at 0x40ab20
Capabilities:
Copy file
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4418e1
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x456600]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
push esi
mov dword [esp + 0x20], ebx
call fcn.0042caff
add esp, 8
test eax, eax
jne 0x40ab79
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
lea ecx, [esp + 0x20]
call fcn.004050b0
push 4
push str..
lea ecx, [esp + 0x24]
mov dword [esp + 0x68], ebx
call fcn.0040bd00
lea ecx, [esp + 0x3c]
call fcn.00411249
mov byte [esp + 0x60], 1
mov eax, dword [esp + 0x1c]
push ebx
push eax
lea ecx, [esp + 0x44]
call fcn.004112e1
cmp eax, ebx
je 0x40add5
lea ecx, [esp + 0x3c]
call fcn.00410f2f
lea ecx, [esp + 0x3c]
mov dword [esp + 0x38], eax
call fcn.0041120a
test eax, eax
jne 0x40ac01
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x40]
call fcn.0041164a
mov eax, dword [eax]
or dword [esp + 0x18], 1
push str.gamepatch
push eax
call fcn.0042caff
add esp, 8
test eax, eax
je 0x40ac01
mov bl, 1
jmp 0x40ac03
xor bl, bl
mov dword [esp + 0x60], 1
test byte [esp + 0x18], 1
je 0x40ac37
mov eax, dword [esp + 0x20]
and dword [esp + 0x18], 0xfffffffe
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ac37
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x40adca
push edi
lea ecx, [esp + 0x18]
call fcn.004050b0
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x40]
mov byte [esp + 0x64], 3
call fcn.0041164a
mov esi, eax
push 0x448f18
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x6c], 4
call fcn.00404710
push esi
push eax
lea ecx, [esp + 0x38]
push ecx
mov byte [esp + 0x78], 5
call fcn.00404320
add esp, 0x18
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x64], 6
call fcn.004045b0
mov byte [esp + 0x60], 5
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 0x40acbf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x60], 4
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 0x40ace4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x60], 3
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 0x40ad09
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x3c]
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [esp + 0x40]
call eax
test eax, eax
je 0x40ad67
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0040ae30
add esp, 4
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x40]
call fcn.004115b9
mov byte [esp + 0x60], 7
mov ecx, dword [esp + 0x14]
mov eax, dword [eax]
push ecx
push eax
call fcn.0040ab20
mov byte [esp + 0x68], 3
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
add esp, 8
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40ad99
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x40]
call fcn.004115b9
mov edx, dword [esp + 0x14]
mov eax, dword [eax]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ada5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x60], 1
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 0x40adca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x38], 0
jne 0x40abbc
lea ecx, [esp + 0x3c]
call fcn.00410e49
lea ecx, [esp + 0x3c]
mov byte [esp + 0x60], 0
call fcn.00411272
mov dword [esp + 0x60], 0xffffffff
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 0x40ae14
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret