Function at 0x424490
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dc706
mov eax, dword fs:[0]
push eax
sub esp, 0x78
push ebx
push esi
push edi
mov eax, dword [0x66c0e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0xffffffffffffffff
lea ecx, [ebx + 8]
push 0
call fcn.00422f80
mov edi, dword [ebp + 8]
mov dword [ebx], 0
test edi, edi
jne 0x4244d6
mov edi, dword [ebx + 4]
cmp byte [edi], 0
je 0x42472f
mov eax, dword [ebx + 4]
push edi
push eax
call fcn.005bc263
add esp, 8
test eax, eax
je 0x424508
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4244f5
sub eax, edx
push eax
push edi
lea ecx, [ebx + 4]
call fcn.00406350
lea ecx, [ebp - 0x2c]
call fcn.004c0de6
push 0
push 0x4040
push edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.004c0cc4
test eax, eax
je 0x424720
call fcn.004b5c24
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x424549
push 0x80004005
call fcn.004047e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp + 8], eax
mov byte [ebp - 4], 1
call fcn.004b5c24
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x424576
push 0x80004005
call fcn.004047e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.004c11e4
test eax, eax
je 0x4246d5
lea ecx, [ecx]
lea ecx, [ebp - 0x84]
call fcn.00422e60
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 3
call fcn.00423a30
test eax, eax
jle 0x424678
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.0041e090
mov ecx, dword [ebp - 0x58]
mov edx, dword [eax]
push ecx
push edx
lea eax, [ebp - 0x10]
push str._s_s
push eax
mov byte [ebp - 4], 4
call fcn.004065c0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
add esp, 0x18
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42460f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x84]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x42466f
mov edx, dword [ebp - 0x84]
push edx
call fcn.0041ae40
add esp, 4
xor ecx, ecx
cmp dword [ebp - 0x7c], eax
jne 0x42466f
cmp dword [ebp - 0x78], ecx
jne 0x42466f
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x424672
push esi
call fcn.0041ae40
add esp, 4
xor ecx, ecx
cmp dword [ebp - 0x54], eax
jne 0x424672
cmp dword [ebp - 0x50], ecx
jne 0x424672
lea ecx, [ebp - 0x84]
push ecx
lea ecx, [ebx + 8]
call fcn.00423fc0
jmp 0x424678
mov esi, dword [ebp - 0x10]
mov dword [ebx], 1
mov eax, dword [ebp - 0x58]
add eax, 0xfffffff0
mov byte [ebp - 4], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42469b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x84]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4246c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004c11e4
test eax, eax
jne 0x4245a0
lea ecx, [ebp - 0x2c]
call fcn.004c1085
lea eax, [esi - 0x10]
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4246fd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x424720
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.004c10c3
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 4