Function at 0x429bb0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57dbf9
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x5ef220]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x20], eax
mov esi, ecx
push eax
xor ebx, ebx
push esi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x40], ebx
call fcn.005594af
add esp, 8
test eax, eax
jne 0x429c07
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
lea ecx, [ebp - 0x18]
call fcn.0040f690
push 4
push str..
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
call fcn.0040ef00
lea ecx, [ebp - 0x5c]
call fcn.00432d9e
push 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5c]
push dword [ebp - 0x18]
call fcn.0043303b
or edi, 0xffffffff
test eax, eax
je 0x429eb0
lea ebx, [ebx]
lea ecx, [ebp - 0x5c]
call fcn.004331e3
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x40], eax
call fcn.0043358b
test eax, eax
jne 0x429c90
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x5c]
call fcn.004332af
push str.gamepatch
push dword [eax]
or ebx, 1
mov dword [ebp - 0x14], ebx
call fcn.005594af
add esp, 8
test eax, eax
je 0x429c90
mov bl, 1
jmp 0x429c92
xor bl, bl
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x14]
test al, 1
je 0x429cc2
mov edx, dword [ebp - 0x1c]
and eax, 0xfffffffe
add edx, 0xfffffff0
mov dword [ebp - 0x14], eax
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x429cc2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x429ea3
push dword [ebp - 0x20]
lea ecx, [ebp - 0x10]
call fcn.0040f690
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x5c]
call fcn.004332af
mov esi, eax
push 0x5c52e8
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0040f190
push esi
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 5
push eax
call fcn.0040c0c0
add esp, 0x18
mov byte [ebp - 4], 6
mov ecx, dword [eax]
mov esi, dword [ebp - 0x10]
add esi, 0xfffffff0
lea edx, [ecx - 0x10]
cmp edx, esi
je 0x429d67
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x429d5b
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x429d5b
push edx
call fcn.0040f7f0
add esp, 4
mov dword [ebp - 0x24], eax
mov ecx, edi
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x429d53
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x24]
add eax, 0x10
mov dword [ebp - 0x10], eax
jmp 0x429d67
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x10]
call fcn.0040fa60
mov byte [ebp - 4], 5
mov ecx, edi
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x429d87
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov ecx, edi
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x429da7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov ecx, edi
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x429dc7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x5c]
lea ecx, [ebp - 0x5c]
push 0x10
call dword [eax + 0x38]
test eax, eax
je 0x429e07
mov ecx, dword [ebp - 0x10]
call fcn.0042a3b0
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x5c]
call fcn.004332fc
push dword [ebp + 8]
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x10]
mov ecx, dword [eax]
call fcn.00429bb0
mov byte [ebp - 4], 3
add esp, 4
mov edx, dword [ebp - 0x34]
jmp 0x429e6a
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x5c]
call fcn.004332af
push str.Rungame.exe
push dword [eax]
call fcn.005594af
mov byte [ebp - 4], 3
add esp, 8
mov esi, dword [ebp - 0x38]
mov ebx, eax
add esi, 0xfffffff0
mov edx, edi
lea ecx, [esi + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x429e44
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
je 0x429e83
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x5c]
call fcn.004332fc
mov ecx, dword [eax]
mov eax, dword [ebp + 8]
movzx eax, al
push eax
push dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edx, dword [ebp - 0x3c]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x429e83
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov ecx, edi
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x429ea3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x40], 0
mov ebx, dword [ebp - 0x14]
jne 0x429c50
lea ecx, [ebp - 0x5c]
call fcn.00432fef
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0
call fcn.00432f4f
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x429ee5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret