Function at 0x407cc0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x697275
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x75f140]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.0042a586
mov ecx, eax
test ecx, ecx
je 0x407f39
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push esi
mov dword [ebp - 4], 0
call fcn.00402960
test al, al
jne 0x407d39
test esi, esi
jne 0x407d21
xor ecx, ecx
jmp 0x407d2f
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407d26
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x10]
call fcn.00403730
push str.datas
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00406fc0
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
add esp, 0xc
push dword [eax]
call ebx
mov edx, dword [ebp - 0x14]
or edi, 0xffffffff
mov dword [ebp - 0x1c], eax
add edx, 0xfffffff0
mov ecx, edi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x407d7f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
mov eax, edi
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407da0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.0042a586
mov ecx, eax
test ecx, ecx
je 0x407f43
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 2
call fcn.00402960
test al, al
jne 0x407df3
test esi, esi
jne 0x407dd6
xor ecx, ecx
jmp 0x407de9
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407de0
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x10]
call fcn.00403730
push str.launcher.exe
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 3
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00406fc0
add esp, 0xc
push dword [eax]
call ebx
mov edx, dword [ebp - 0x14]
mov ebx, eax
add edx, 0xfffffff0
mov ecx, edi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x407e2f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
mov eax, edi
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407e50
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.0042a586
mov ecx, eax
test ecx, ecx
je 0x407f4d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 4
call fcn.00402960
test al, al
jne 0x407ea3
test esi, esi
jne 0x407e86
xor ecx, ecx
jmp 0x407e99
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407e90
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x10]
call fcn.00403730
push str.client
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 5
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00406fc0
add esp, 0xc
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov edx, dword [ebp - 0x18]
mov esi, eax
add edx, 0xfffffff0
mov ecx, edi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x407ee3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x407f02
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x1c], 0
je 0x407f25
test ebx, ebx
je 0x407f25
xor eax, eax
test esi, esi
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
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 0x80004005
call fcn.00402130
push 0x80004005
call fcn.00402130
push 0x80004005
call fcn.00402130
int3