Function at 0x47881c
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c35a7
mov eax, dword fs:[0]
push eax
mov eax, 0x122c
call fcn.00436e30
mov eax, dword [0x4f230c]
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 [0x4fa4c8], ebx
jne 0x478998
call fcn.004782ee
test al, al
je 0x478883
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.004786f9
test al, al
je 0x4788a1
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.00478447
test al, al
je 0x4788ca
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.0047a540
lea eax, [ebp - 0x218]
push str.C:LogResLog.dll
push eax
call fcn.0047e031
add esp, 0x14
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x478978
cmp dword [0x4f2640], 8
lea ecx, [ebp - 0x1231]
mov eax, 0x4f262c
cmovae eax, dword [0x4f262c]
push eax
lea eax, [ebp - 0x1230]
push eax
call fcn.0047875c
mov esi, str.ResLog.dll
mov dword [ebp - 4], ebx
push esi
call fcn.0047e053
pop ecx
push eax
push esi
lea ecx, [ebp - 0x1230]
call fcn.00427327
cmp dword [ebp - 0x121c], 8
lea eax, [ebp - 0x1230]
cmovae eax, dword [ebp - 0x1230]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0047e031
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x1230]
call fcn.00402353
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x4fa4c8], eax
test eax, eax
je 0x478a9b
mov eax, dword [ebp - 0x1238]
push ebx
push 0x4c4ce0
mov ecx, eax
call fcn.004024a6
call fcn.00478402
test al, al
je 0x4789c5
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.00478081
test al, al
je 0x4789e8
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 [0x4fa4c8]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jle 0x478a39
cmp word [ebp - 0x1218], 0
jne 0x478a15
xor eax, eax
jmp 0x478a22
lea eax, [ebp - 0x1218]
push eax
call fcn.0047e053
pop ecx
push eax
lea ecx, [ebp - 0x1218]
push ecx
mov ecx, dword [ebp - 0x1238]
call fcn.004024a6
mov al, 1
jmp 0x478a9d
call fcn.00478516
test al, al
je 0x478a5d
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.0047855b
test al, al
je 0x478a7d
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.00478264
test al, al
je 0x478a9b
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.00435e81
mov esp, ebp
pop ebp
ret