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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x442e49
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x457600]
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 + 0x1c], ebx
call fcn.0042dea5
add esp, 8
test eax, eax
jne 0x40be19
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 + 0x1c]
call fcn.00406b70
push 4
push str..
lea ecx, [esp + 0x20]
mov dword [esp + 0x68], ebx
call fcn.0040cfa0
lea ecx, [esp + 0x3c]
call fcn.0041250b
mov byte [esp + 0x60], 1
mov eax, dword [esp + 0x18]
push ebx
push eax
lea ecx, [esp + 0x44]
call fcn.004125a3
cmp eax, ebx
je 0x40c0be
lea ecx, [esp + 0x3c]
call fcn.004121f1
lea ecx, [esp + 0x3c]
mov dword [esp + 0x38], eax
call fcn.004124cc
test eax, eax
jne 0x40bea1
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x40]
call fcn.0041290c
mov eax, dword [eax]
or dword [esp + 0x14], 1
push str.gamepatch
push eax
call fcn.0042dea5
add esp, 8
test eax, eax
je 0x40bea1
mov bl, 1
jmp 0x40bea3
xor bl, bl
mov dword [esp + 0x60], 1
test byte [esp + 0x14], 1
je 0x40bed7
mov eax, dword [esp + 0x1c]
and dword [esp + 0x14], 0xfffffffe
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40bed7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x40c0b3
push edi
lea ecx, [esp + 0x14]
call fcn.00406b70
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x40]
mov byte [esp + 0x64], 3
call fcn.0041290c
mov esi, eax
push 0x449f28
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0x6c], 4
call fcn.004061d0
push esi
push eax
lea ecx, [esp + 0x34]
push ecx
mov byte [esp + 0x78], 5
call fcn.00405250
add esp, 0x18
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x64], 6
call fcn.00406070
mov byte [esp + 0x60], 5
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40bf5f
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 + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bf84
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 + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bfa9
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 0x40c007
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0040c120
add esp, 4
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x40]
call fcn.0041287b
mov byte [esp + 0x60], 7
mov ecx, dword [esp + 0x10]
mov eax, dword [eax]
push ecx
push eax
call fcn.0040bdc0
mov byte [esp + 0x68], 3
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
add esp, 8
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40c082
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x40]
call fcn.0041290c
mov eax, dword [eax]
push str.Rungame.exe
push eax
call fcn.0042dea5
mov esi, eax
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
jg 0x40c04c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x40c08e
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x40]
call fcn.0041287b
mov edx, dword [esp + 0x10]
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 0x40c08e
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 + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c0b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x38], 0
jne 0x40be5c
lea ecx, [esp + 0x3c]
call fcn.0041210b
lea ecx, [esp + 0x3c]
mov byte [esp + 0x60], 0
call fcn.00412534
mov dword [esp + 0x60], 0xffffffff
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 0x40c0fd
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