Function at 0x422390
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6024fb
mov eax, dword fs:[0]
push eax
mov eax, 0x144c
call fcn.005373d0
mov eax, dword [0x67e4d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x142c], ecx
call fcn.00428b80
mov ecx, eax
call fcn.00429d30
mov dword [ebp - 0x1428], eax
mov dword [ebp - 0x1424], 1
mov dword [ebp - 0x1448], 0x104
push 0x208
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.0058a9f0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [ebp - 0x1428]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x1428]
mov edx, dword [eax + 0x18]
call edx
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp - 0x142c]
add ecx, 8
call fcn.0040ac60
mov dword [ebp - 0x1430], 0
push 0x208
push 0
lea ecx, [ebp - 0x420]
push ecx
call fcn.0058a9f0
add esp, 0xc
mov dword [ebp - 0x143c], 0
mov dword [ebp - 0x1438], 0
mov dword [ebp - 0x1434], 0
lea edx, [ebp - 0x1434]
push edx
lea eax, [ebp - 0x1438]
push eax
lea ecx, [ebp - 0x143c]
push ecx
push 0x104
lea edx, [ebp - 0x420]
push edx
mov eax, dword [ebp - 0x1428]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x1428]
mov eax, dword [edx + 8]
call eax
test eax, eax
je 0x4225cc
cmp dword [ebp - 0x1434], 0
jne 0x4224ba
jmp 0x422473
push 1
lea ecx, [ebp - 0x1420]
call fcn.004164b0
push 1
lea ecx, [ebp - 0xc20]
call fcn.004164b0
lea ecx, [ebp - 0x420]
push ecx
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0xc20]
call fcn.00416470
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x420]
push eax
mov ecx, dword [ebp - 0x142c]
add ecx, 4
call fcn.0040f210
push eax
lea ecx, [ebp - 0x1420]
call fcn.00416470
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0xc20]
call fcn.00416490
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x422541
mov dword [ebp - 0x1424], 0
jmp 0x422473
lea ecx, [ebp - 0xc20]
call fcn.00416490
push eax
call fcn.0043d410
add esp, 4
lea ecx, [ebp - 0x1420]
call fcn.00416490
push eax
lea ecx, [ebp - 0xc20]
call fcn.00416490
push eax
mov ecx, dword [ebp - 0x142c]
call fcn.00422680
and eax, dword [ebp - 0x1424]
mov dword [ebp - 0x1424], eax
mov ecx, dword [ebp - 0x1430]
add ecx, 1
mov dword [ebp - 0x1430], ecx
cvtsi2ss xmm0, dword [ebp - 0x1430]
cvtsi2ss xmm1, dword [ebp - 0x1438]
divss xmm0, xmm1
mulss xmm0, dword [0x654244]
addss xmm0, dword [0x654240]
cvttss2si edx, xmm0
push edx
mov ecx, dword [ebp - 0x142c]
call fcn.00423410
jmp 0x422473
mov ecx, dword [ebp - 0x142c]
call fcn.004235d0
mov eax, dword [ebp - 0x1428]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x1428]
mov eax, dword [edx + 0x14]
call eax
and eax, dword [ebp - 0x1424]
mov dword [ebp - 0x1424], eax
mov ecx, dword [ebp - 0x1424]
push ecx
mov edx, dword [ebp - 0x142c]
push edx
push 0x423300
lea eax, [ebp - 0x1458]
push eax
call fcn.00425b10
add esp, 0x10
mov dword [ebp - 0x1440], eax
mov ecx, dword [ebp - 0x1440]
mov dword [ebp - 0x1444], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x1444]
push edx
call fcn.0044e9a0
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1458]
call fcn.00423dd0
mov eax, dword [ebp - 0x1424]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00536569
mov esp, ebp
pop ebp
ret