Function at 0x4385c8
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push 0xb8
mov eax, 0x5ac2a9
call fcn.0042d04a
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0xc0], eax
and dword [ebp - 4], 0
call fcn.00436554
test al, al
je 0x438606
pop ebx
pop ecx
pop edi
pop ebx
pop esp
pop edi
push eax
push eax
pop edi
push edx
pop eax
pop edx
pop esi
push esp
push ebx
pop ebx
pop ebp
push edx
pop esi
push ebp
pop ecx
pop ebp
push ecx
push esi
push ebx
call fcn.00436149
test al, al
je 0x438626
push ebx
push esp
pop ebp
pop eax
pop ecx
pop eax
pop ebx
pop ebx
push edi
pop esi
push eax
pop ebp
push edx
pop esp
push ecx
push esi
pop ebp
pop esi
push esp
push edi
pop ecx
push ebp
pop ecx
call fcn.004366f2
test al, al
je 0x438644
push ecx
pop edi
push esi
pop ecx
pop ebx
pop eax
pop ecx
push ecx
pop esp
pop eax
pop ecx
push ebp
push ebp
push ebx
push esi
pop esp
push esi
push edx
push esp
push esi
push edx
call fcn.00436218
test al, al
je 0x43866c
pop edi
pop ecx
push esp
pop eax
push ecx
push esp
push ecx
push esp
push ebx
push esi
pop edi
pop esp
push esp
push edx
push ecx
push ecx
pop edi
push edx
push ebp
pop edi
pop eax
push ebp
push eax
pop ebx
pop edx
push ecx
push ebp
pop eax
pop esp
push esp
push esp
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
xor eax, eax
mov dword [ebp - 0x14], 7
push eax
push 0x62be94
mov word [ebp - 0x28], ax
call fcn.00403090
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 1
call fcn.00442ca7
and dword [ebp - 0xb8], 0
call fcn.0043684b
test al, al
je 0x4386c3
pop ebx
pop edx
pop edx
pop eax
push ecx
pop esi
pop edi
push ecx
pop ebx
pop ebp
pop ecx
push edx
push edi
push ebp
pop eax
pop esp
push edi
pop esi
pop ebp
push ecx
pop ebx
push eax
push ecx
push ecx
push esi
call fcn.00436623
test al, al
je 0x4386e3
pop esp
push esp
push ebp
pop edi
pop ecx
pop esp
push esi
pop ecx
pop eax
push ebp
pop esp
pop ecx
push ecx
pop edi
push ebp
push esp
pop edi
push eax
pop eax
pop ebp
push ebp
push ecx
push esi
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x438812
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 0
cmovae eax, dword [ebp + 8]
push 0x80
push 4
push 0
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xbc], eax
cmp eax, 0xffffffff
je 0x43880b
call fcn.0043632c
test al, al
je 0x438752
pop esp
pop ebx
pop esi
push ebp
push edx
pop ecx
push ebp
pop ecx
pop ebp
pop edi
push edi
push ebx
pop esi
pop ebp
pop ebp
pop eax
pop ecx
pop edi
pop ebp
push edx
push esp
push ebp
pop esi
pop ecx
pop ebp
call fcn.004366ad
test al, al
je 0x43877a
push esi
push edx
push edi
push esp
pop esp
pop ecx
pop ebx
push esi
push ebx
push eax
pop ebx
push edx
push edx
pop edi
push ebx
pop edi
push esp
push edx
push ebp
push esp
push ebp
pop eax
push ebp
push edx
push ebp
push eax
push eax
push eax
pop edi
push edi
pop esi
call fcn.004361d3
test al, al
je 0x4387a2
pop edx
push edi
push eax
pop edx
pop edx
pop ebx
pop edx
push ebp
pop ebx
pop esi
push edi
push edx
pop edi
push ebx
pop edi
push ecx
push ebp
pop ebp
push edx
push esi
push esi
push edx
pop eax
pop ecx
pop edi
push edx
push ebx
push edi
push ebp
push edx
pop esp
push 0
push dword [ebp - 0xbc]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [ebp - 0xc0]
push eax
mov dword [ebx], eax
call fcn.0042cd51
mov dword [ebp - 0xb8], eax
pop ecx
test eax, eax
jne 0x438836
call fcn.0043684b
test al, al
je 0x4387eb
pop ebx
pop edx
pop edx
pop eax
push ecx
pop esi
pop edi
push ecx
pop ebx
pop ebp
pop ecx
push edx
push edi
push ebp
pop eax
pop esp
push edi
pop esi
pop ebp
push ecx
pop ebx
push eax
push ecx
push ecx
push esi
call fcn.00436623
test al, al
je 0x43880b
pop esp
push esp
push ebp
pop edi
pop ecx
pop esp
push esi
pop ecx
pop eax
push ebp
pop esp
pop ecx
push ecx
pop edi
push ebp
push esp
pop edi
push eax
pop eax
pop ebp
push ebp
push ecx
push esi
and dword [ebp - 0xb8], 0
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00402fd0
push 0
push 1
lea ecx, [ebp + 8]
call fcn.00402fd0
mov eax, dword [ebp - 0xb8]
call fcn.0042cff4
ret
push dword [ebx]
push 0
push eax
call fcn.0044b370
add esp, 0xc
call fcn.0043632c
test al, al
je 0x438865
pop esp
pop ebx
pop esi
push ebp
push edx
pop ecx
push ebp
pop ecx
pop ebp
pop edi
push edi
push ebx
pop esi
pop ebp
pop ebp
pop eax
pop ecx
pop edi
pop ebp
push edx
push esp
push ebp
pop esi
pop ecx
pop ebp
call fcn.004366ad
test al, al
je 0x43888d
push esi
push edx
push edi
push esp
pop esp
pop ecx
pop ebx
push esi
push ebx
push eax
pop ebx
push edx
push edx
pop edi
push ebx
pop edi
push esp
push edx
push ebp
push esp
push ebp
pop eax
push ebp
push edx
push ebp
push eax
push eax
push eax
pop edi
push edi
pop esi
call fcn.004361d3
test al, al
je 0x4388b5
pop edx
push edi
push eax
pop edx
pop edx
pop ebx
pop edx
push ebp
pop ebx
pop esi
push edi
push edx
pop edi
push ebx
pop edi
push ecx
push ebp
pop ebp
push edx
push esi
push esi
push edx
pop eax
pop ecx
pop edi
push edx
push ebx
push edi
push ebp
push edx
pop esp
push 0
lea eax, [ebp - 0xc4]
push eax
mov eax, dword [ebp - 0xc0]
push dword [eax]
push dword [ebp - 0xb8]
push dword [ebp - 0xbc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
call fcn.00436371
test al, al
je 0x4388fb
pop esp
pop esi
pop ecx
pop edx
pop edx
push ebx
push edx
push ebp
pop ecx
pop ebp
pop eax
pop esi
push ebx
pop esp
pop eax
push ebp
push esi
push esp
pop eax
push esi
push ebx
push eax
push esp
pop ecx
pop edi
push ebx
call fcn.004363fb
test al, al
je 0x43891a
push eax
pop esi
pop edx
push ebp
pop ebx
push ebx
pop eax
push ebx
push ebx
push eax
push edx
push esp
pop ecx
pop esi
push ebx
pop edi
push ebx
push ebx
push esp
pop ebp
pop esi
pop esp
call fcn.0043650f
test al, al
je 0x438943
push edi
push eax
pop ebx
pop ebx
push esp
pop ecx
push esi
pop eax
push edx
pop ecx
pop edi
push esp
pop esp
pop edx
push ebx
pop edx
push esi
pop ebx
push ecx
push eax
pop edi
pop eax
pop eax
pop edi
pop esi
push ebx
pop ecx
push ebp
push edx
pop ebp
push ebp
push ebp
push dword [ebp - 0xbc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x438812