Function at 0x418a98
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x3e8
mov eax, 0x51206a
call fcn.004d18f8
mov dword [ebp - 0x1c4], ecx
mov ebx, dword [ebp + 8]
xor eax, eax
push 0x84
push eax
mov edi, eax
mov dword [ebp - 0x1c0], ebx
mov esi, eax
lea eax, [ebp - 0xac]
push eax
call fcn.004e8520
add esp, 0xc
lea ecx, [ebp - 0xac]
push 0x558010
call fcn.0041a4d0
xor ecx, ecx
mov dword [ebp - 4], ecx
mov eax, dword [0x557f80]
cmp word [eax], cx
jne 0x418b89
test ebx, ebx
je 0x418b06
push ebx
lea ecx, [ebp - 0xac]
call fcn.0041a533
xor ecx, ecx
push ecx
push 0x80
push 3
push ecx
push 1
push closesocket
push dword [ebp - 0xac]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
or ebx, 0xffffffff
mov dword [ebp - 0x18], eax
cmp eax, ebx
jne 0x418b3f
lea ecx, [ebp - 0xac]
mov dword [ebp - 4], ebx
call fcn.0041a4f5
jmp 0x418d11
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x418b2c
and dword [ebp - 0x1c], 0
push esi
call fcn.004d09be
pop ecx
push 0
mov edi, eax
lea eax, [ebp - 0x1c]
push eax
push esi
push edi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1c], esi
je 0x418cff
push edi
call fcn.004d04e6
pop ecx
xor edi, edi
jmp 0x418b2c
push eax
lea ecx, [ebp - 0xac]
call fcn.0041a533
cmp byte [0x557ec0], 0
je 0x418ba9
mov ebx, dword [0x55ca90]
mov dword [ebp - 0x18], ebx
jmp 0x418c15
push 0x84
lea eax, [ebp - 0x1bc]
push 0
push eax
call fcn.004e8520
add esp, 0xc
lea ecx, [ebp - 0x1bc]
push 0x557ef8
call fcn.0041a4d0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1bc]
call fcn.00413539
mov ecx, dword [ebp - 0xac]
xor edx, edx
push eax
push 2
mov dword [ebp - 0x1c], eax
call fcn.0044700f
mov ebx, eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ebx
pop ecx
pop ecx
test eax, eax
je 0x418c06
push eax
call fcn.004d04e6
pop ecx
lea ecx, [ebp - 0x1bc]
mov byte [ebp - 4], 0
call fcn.0041a4f5
test ebx, ebx
jne 0x418c21
or ebx, 0xffffffff
jmp 0x418b2c
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x134]
push 0x84
push 0
push eax
call fcn.004e8520
add esp, 0xc
lea ecx, [ebp - 0x134]
or ebx, 0xffffffff
push ebx
push dword [ebp - 0x1c0]
call fcn.0041a4ac
push 0x53c200
push 0x53b2d8
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 2
call fcn.0041a90b
mov edx, dword [ebp - 0x134]
lea eax, [ebp - 0x3f4]
push eax
lea eax, [ebp - 0x1c]
push eax
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.004470d6
add esp, 0xc
test eax, eax
je 0x418c9a
lea ecx, [ebp - 0x134]
call fcn.0041a4f5
jmp 0x418b2c
mov esi, dword [ebp - 0x1c8]
test esi, esi
je 0x418c8a
push esi
call fcn.004d09be
mov edx, dword [ebp - 0x1c]
mov edi, eax
mov ecx, dword [ebp - 0x18]
push esi
push edi
call fcn.00447109
add esp, 0xc
test eax, eax
je 0x418ce3
cmp eax, 0x600
je 0x418ce3
push edi
call fcn.004d04e6
xor edi, edi
cmp byte [0x557ec0], 0
pop ecx
jne 0x418c8a
mov ecx, dword [ebp - 0x18]
call fcn.0044713a
jmp 0x418c8a
cmp byte [0x557ec0], 0
jne 0x418cf4
mov ecx, dword [ebp - 0x18]
call fcn.0044713a
lea ecx, [ebp - 0x134]
call fcn.0041a4f5
lea ecx, [ebp - 0xac]
mov dword [ebp - 4], ebx
call fcn.0041a4f5
test edi, edi
jne 0x418d7e
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push dword [ebp - 0x1c0]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1c0], eax
cmp eax, ebx
je 0x418d7e
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x418d7e
push esi
mov dword [ebp - 0x18], ebx
call fcn.004d09be
pop ecx
push ebx
mov ebx, dword [ebp - 0x1c0]
mov edi, eax
lea eax, [ebp - 0x18]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], esi
je 0x418d7e
push edi
call fcn.004d04e6
pop ecx
xor edi, edi
lea eax, [ebp - 0x20]
push eax
push 0
push esi
push edi
call dword [sym.imp.GDI32.dll_AddFontMemResourceEx]
push edi
mov esi, eax
call fcn.004d04e6
pop ecx
mov ecx, dword [ebp - 0x1c4]
push esi
add ecx, 0x46c
call fcn.0041a318
call fcn.004d18a2
ret 4