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

Disassembly:
push 0xffffffffffffffff
push 0x544dba
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov eax, dword [0x591d64]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov dword [esp + 0x30], ecx
xor ebx, ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x60], 1
mov ecx, dword [esp + 0x6c]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x409ae2
push 0x80004005
call fcn.0040e230
mov eax, dword [esp + 0x68]
push ecx
push eax
call fcn.0050585b
add esp, 8
test eax, eax
sete al
test al, al
je 0x409b5e
mov byte [esp + 0x60], 0
mov eax, dword [esp + 0x68]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409b1e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x60], 0xffffffff
mov eax, dword [esp + 0x6c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409b46
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 8
call fcn.00415458
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x409b78
push 0x80004005
call fcn.0040e230
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x60], 2
call fcn.00415458
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x409ba7
push 0x80004005
call fcn.0040e230
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
mov byte [esp + 0x60], 3
mov ecx, dword [esp + 0x68]
push ecx
lea edx, [esp + 0x20]
push str._s.
push edx
call fcn.0040de30
mov ecx, dword [esp + 0x78]
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
sub eax, 0x104
add esp, 0xc
or eax, edx
jge 0x409bfd
push 0x104
lea ecx, [esp + 0x70]
call fcn.0040e0f0
mov ecx, dword [esp + 0x6c]
call fcn.0040a1f0
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.00505327
add esp, 8
test eax, eax
jl 0x409ee5
mov ecx, dword [esp + 0x6c]
cmp eax, dword [ecx - 8]
jg 0x409ee5
mov dword [ecx - 0xc], eax
mov ecx, dword [esp + 0x6c]
mov byte [eax + ecx], 0
lea ecx, [esp + 0x40]
call fcn.00418ed1
mov byte [esp + 0x60], 4
mov edx, dword [esp + 0x1c]
push 0
push edx
lea ecx, [esp + 0x48]
call fcn.00418f66
test eax, eax
je 0x409e31
mov ebp, dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [esp + 0x40]
call fcn.00418bd5
lea ecx, [esp + 0x40]
mov dword [esp + 0x38], eax
call fcn.00418e96
test eax, eax
jne 0x409e26
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x44]
call fcn.004191e5
mov byte [esp + 0x60], 5
mov eax, dword [eax]
push str.RunGame.exe
or ebx, 1
push eax
mov dword [esp + 0x28], ebx
call fcn.00506154
add esp, 8
test eax, eax
je 0x409cd5
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x44]
call fcn.004191e5
mov eax, dword [eax]
push str.GameInfo
push eax
or ebx, 2
call fcn.00506154
add esp, 8
mov byte [esp + 0x17], 0
test eax, eax
jne 0x409cda
mov byte [esp + 0x17], 1
mov dword [esp + 0x60], 5
test bl, 2
je 0x409d0e
mov eax, dword [esp + 0x24]
and ebx, 0xfffffffd
add eax, 0xfffffff0
mov dword [esp + 0x20], ebx
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409d0e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x60], 4
test bl, 1
je 0x409d3e
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
and ebx, 0xfffffffe
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409d3e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x17], 0
jne 0x409e26
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x44]
call fcn.004191e5
mov byte [esp + 0x60], 7
mov edx, dword [eax]
mov eax, dword [esp + 0x6c]
push edx
push eax
lea ecx, [esp + 0x20]
push str._s_s
push ecx
call fcn.0040de30
mov byte [esp + 0x70], 4
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
add esp, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409d9b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x40]
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [esp + 0x44]
call eax
test eax, eax
je 0x409dec
mov edi, dword [esp + 0x18]
push ecx
lea eax, [edi - 0x10]
mov dword [esp + 0x24], esp
mov esi, esp
push eax
call fcn.0040e260
add eax, 0x10
mov dword [esi], eax
mov ecx, esp
mov dword [esp + 0x44], esp
push ecx
lea ecx, [esp + 0x4c]
mov byte [esp + 0x6c], 8
call fcn.00419159
mov ecx, dword [esp + 0x38]
mov byte [esp + 0x68], 4
call fcn.00409a90
jmp 0x409e26
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x44]
call fcn.00419159
mov edi, dword [esp + 0x18]
mov eax, dword [eax]
push 0
push edi
push eax
call ebp
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 0x409e26
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x38], 0
jne 0x409c5f
lea ecx, [esp + 0x40]
call fcn.00418aef
lea ecx, [esp + 0x40]
mov byte [esp + 0x60], 3
call fcn.00418ef7
lea eax, [edi - 0x10]
mov byte [esp + 0x60], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409e69
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 + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409e8e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x60], 0
mov eax, dword [esp + 0x68]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409eb3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x60], 0xffffffff
mov eax, dword [esp + 0x6c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409edb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x409b48
push 0x80070057
call fcn.0040e230
int3