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

Disassembly:
push 0xd4
mov eax, 0x579687
call fcn.00474262
mov ebx, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0xcc], ebx
mov dword [ebp - 0xdc], edi
push edi
xor eax, eax
mov dword [ebp - 4], edi
push 0x5d31f4
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], edi
mov word [ebp - 0x28], ax
call fcn.004217f0
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 1
call fcn.0044ac30
call fcn.0043a5b2
test al, al
je 0x438af9
push eax
push eax
pop edi
push eax
pop ebp
pop ebx
pop ebx
pop edx
pop ecx
pop edi
pop edx
push eax
pop eax
push ecx
push esp
pop ebp
push ebp
pop esi
pop ecx
push esp
pop ebp
pop esp
push esi
push ebx
push edx
pop edi
push edx
push esi
mov ebx, dword [ebp - 0xcc]
xor edi, edi
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x438db1
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
push edi
cmovae eax, dword [ebp + 0xc]
push 0x80
push 4
push edi
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc8], eax
cmp eax, 0xffffffff
jne 0x438b69
push 0x5d31f4
mov ecx, ebx
call fcn.00421580
push edi
push 1
lea ecx, [ebp - 0x28]
call fcn.00421690
push edi
push 1
lea ecx, [ebp + 0xc]
call fcn.00421690
mov eax, ebx
jmp 0x438ddc
call fcn.0043a681
test al, al
je 0x438b8c
push ebx
pop edx
push ebp
push ecx
push esp
push esp
pop esi
pop ebx
pop edx
pop edx
pop ebx
push esi
push eax
push esp
push esp
pop eax
pop ebx
pop eax
pop esi
pop eax
pop ebp
pop edi
push ebx
push edi
pop ebx
pop edx
call fcn.0043a81f
test al, al
je 0x438bb1
push esi
pop esp
push eax
push esi
push ebx
push esi
pop esp
push edi
pop ebp
push edi
push edx
pop edi
pop esp
push ecx
push ecx
pop eax
push ecx
pop ebp
push ebp
push ebx
pop esi
pop edi
pop ebx
push eax
pop ebp
push esp
push esi
push ebx
xor ebx, ebx
push ebx
push dword [ebp - 0xc8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xd4], eax
inc eax
push eax
mov dword [ebp - 0xd8], eax
call fcn.0042f76a
mov dword [ebp - 0xd0], eax
pop ecx
test eax, eax
jne 0x438bff
mov ecx, dword [ebp - 0xcc]
push 0x5d31f4
call fcn.00421580
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.00421690
push ebx
jmp 0x438dcc
call fcn.0043a70b
test al, al
je 0x438c1d
pop edx
pop ebp
pop eax
push ecx
pop edx
push edx
pop edi
push eax
pop ebx
push esp
pop esi
push ebp
pop eax
pop ebx
pop edi
pop eax
push ebx
push edx
push ebx
push edi
pop eax
call fcn.0043a49e
test al, al
je 0x438c36
pop ecx
push ebp
pop ebp
push eax
pop ebp
pop ecx
push ebp
pop ecx
push edx
pop edi
pop edx
push eax
pop edx
pop edx
pop ecx
pop eax
call fcn.0043aa47
test al, al
je 0x438c53
pop esi
push ecx
pop edx
pop edx
push ebx
pop ebx
pop ecx
push edx
pop esi
pop ebp
push esi
push esi
pop esi
push ebp
push edi
pop ebx
push ebx
pop edi
pop ebp
pop esi
push dword [ebp - 0xd8]
mov ebx, dword [ebp - 0xd0]
push 0
push ebx
call fcn.00452070
add esp, 0xc
lea eax, [ebp - 0xe0]
push 0
push eax
push dword [ebp - 0xd4]
push ebx
push dword [ebp - 0xc8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
call fcn.0043a70b
test al, al
je 0x438cb5
push eax
pop esp
pop ecx
push ebx
pop eax
pop ecx
push ecx
pop ebx
pop edx
push edi
push ebx
pop esp
push ebx
push ebx
push edi
pop esp
push edx
pop edi
pop ecx
pop ebx
push ebp
pop edx
pop edi
push edi
push edx
pop esp
push esi
push ebp
push esi
push edi
push ebx
push ebp
mov ebx, dword [ebp - 0xd0]
call fcn.0043aa02
test al, al
je 0x438cd7
push esp
push edx
push edi
push edx
pop eax
pop ecx
push esp
push edx
pop ecx
pop edx
pop ecx
push esp
pop eax
push esp
pop edx
push esi
pop esp
push ebx
push edx
push esp
pop esi
push esp
push esi
push edi
pop edi
push dword [ebp - 0xc8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xd4]
lea ecx, [ebp - 0xc4]
push ebx
call fcn.0044b67d
push ebx
call fcn.0042f724
pop ecx
call fcn.0043a49e
test al, al
je 0x438d15
push ebp
push ebp
pop esi
push ecx
pop edi
push edi
push eax
push edi
pop ebx
pop ebx
push esi
push ebp
push esi
push edx
push ebx
push esp
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0xc4]
call fcn.0044aecb
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
call fcn.00437433
pop ecx
pop ecx
xor edi, edi
mov byte [ebp - 4], 4
push edi
push 1
lea ecx, [ebp - 0x58]
call fcn.00421a80
call fcn.0043a70b
test al, al
je 0x438d6b
push ebp
push ecx
push edi
pop esi
pop ecx
pop eax
pop esp
push ebx
push edi
pop ecx
push ecx
pop esp
push ecx
push eax
push ebx
push edi
push ebp
push esp
push eax
push ebx
pop esp
push eax
pop ebx
pop esi
pop eax
push ebp
push esi
push ecx
push edx
call fcn.0043a978
test al, al
je 0x438d91
push esp
pop edx
push ebx
pop ebp
pop eax
pop ebp
push ecx
pop eax
push eax
push ecx
pop ebx
push edx
pop esi
push edx
pop esp
pop esp
push ebp
pop edx
pop ecx
push ebp
push eax
push edi
push esp
pop edi
push esi
push ecx
pop edi
xor edi, edi
cmp dword [ebp - 0x30], 0
jbe 0x438da6
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.004218f0
push edi
push 1
lea ecx, [ebp - 0x40]
call fcn.00421690
mov ecx, dword [ebp - 0xcc]
lea eax, [ebp - 0x28]
push eax
call fcn.00424680
push edi
push 1
lea ecx, [ebp - 0x28]
call fcn.00421690
push edi
push 1
lea ecx, [ebp + 0xc]
call fcn.00421690
mov eax, dword [ebp - 0xcc]
call fcn.0047421d
ret