Function at 0x42c097
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a05d2
mov eax, dword fs:[0]
push eax
mov eax, 0x122c
call fcn.00420820
mov eax, dword [0x6280b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x1238], eax
cmp dword [0x62d738], ebx
jne 0x42c213
call fcn.0042bb02
test al, al
je 0x42c0fe
pop esi
pop ecx
pop edi
push ebx
pop ecx
push edi
push eax
pop edi
push ebp
push edi
push eax
pop eax
push esp
push edx
push ebx
pop eax
pop edi
push ebp
pop ebp
push ecx
pop edx
call fcn.0042bf52
test al, al
je 0x42c11c
push esp
pop esp
push edi
pop ecx
pop ebp
push esp
push esp
pop eax
push esi
push esi
push ebp
pop esp
pop ebx
pop ebx
push edi
pop esp
push esp
pop edi
push edx
xor ebx, ebx
call fcn.0042bc5b
test al, al
je 0x42c145
push edx
push edi
pop eax
pop esp
push edi
pop ebx
pop esi
pop ebp
push esi
pop edi
push esp
push ecx
pop eax
push eax
push ecx
push ebp
push ecx
push ebp
pop esp
push esp
pop edx
pop esp
pop ebp
pop eax
pop esp
pop ebx
pop esi
push edi
push edi
pop ebp
xor ebx, ebx
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.00443040
lea eax, [ebp - 0x218]
push str.C:LogResLog.dll
push eax
call fcn.00452850
add esp, 0x14
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42c1f3
cmp dword [0x6280e8], 8
lea ecx, [ebp - 0x1231]
mov eax, 0x6280d4
cmovae eax, dword [0x6280d4]
push eax
lea eax, [ebp - 0x1230]
push eax
call fcn.0042bfd7
mov esi, str.ResLog.dll
mov dword [ebp - 4], ebx
push esi
call fcn.00452872
pop ecx
push eax
push esi
lea ecx, [ebp - 0x1230]
call fcn.004024d0
cmp dword [ebp - 0x121c], 8
lea eax, [ebp - 0x1230]
cmovae eax, dword [ebp - 0x1230]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00452850
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x1230]
call fcn.00401d10
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x62d738], eax
test eax, eax
je 0x42c316
mov eax, dword [ebp - 0x1238]
push ebx
push 0x61d004
mov ecx, eax
call fcn.00401d80
call fcn.0042bc16
test al, al
je 0x42c240
pop edx
pop ebx
pop esi
push edi
pop edi
push ecx
pop edx
push ebp
pop eax
pop ebp
push edx
push eax
push eax
pop edx
push edi
pop esp
pop eax
push ebx
pop edi
pop edx
push edx
pop eax
push esi
call fcn.0042b895
test al, al
je 0x42c263
pop esp
push ebx
push eax
pop edi
pop ecx
pop edx
push ebp
push eax
pop ecx
push edi
pop eax
pop ebx
push edi
pop ecx
push ebx
pop edi
push eax
pop ecx
push edi
pop esp
push ebx
pop edi
push edx
pop edi
push edx
pop esi
push 0x800
lea eax, [ebp - 0x1218]
push eax
push dword [ebp + 8]
push dword [0x62d738]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jle 0x42c2b4
cmp word [ebp - 0x1218], 0
jne 0x42c290
xor eax, eax
jmp 0x42c29d
lea eax, [ebp - 0x1218]
push eax
call fcn.00452872
pop ecx
push eax
lea ecx, [ebp - 0x1218]
push ecx
mov ecx, dword [ebp - 0x1238]
call fcn.00401d80
mov al, 1
jmp 0x42c318
call fcn.0042bd2a
test al, al
je 0x42c2d8
push ecx
pop esp
push eax
pop ebp
push esi
pop eax
pop esp
push eax
push esi
pop ecx
pop eax
push ebp
pop eax
pop esi
push edx
pop edi
pop ebp
push edx
push eax
pop ebx
pop edx
pop edx
push esi
push esi
pop edx
pop ebp
pop ebx
call fcn.0042bd6f
test al, al
je 0x42c2f8
pop esp
push eax
push esi
push esi
push ebp
push esi
pop eax
pop ecx
pop eax
push edi
push edi
pop ebx
push esp
pop esp
push esi
pop ecx
push esi
push esi
push ebx
pop esi
push edx
pop esp
pop eax
call fcn.0042ba78
test al, al
je 0x42c316
push ebp
push ecx
pop esp
push ecx
pop ebp
push ecx
push esp
push ecx
pop esp
pop edi
push edi
pop ebp
push edi
push esp
pop ebx
push ecx
push edi
pop ebx
pop eax
pop ebx
push ebp
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041feb9
mov esp, ebp
pop ebp
ret