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

Disassembly:
push 0x3dc
mov eax, 0x4861ab
call fcn.0041ca69
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x3e4], ecx
mov dword [ebp - 0x3d8], eax
mov dword [ebp - 0x3d0], ebx
xor esi, esi
call fcn.004345b2
push eax
lea ecx, [ebp - 0x94]
call fcn.0043162b
mov dword [ebp - 4], ebx
call fcn.004345b8
mov edi, eax
mov ecx, eax
call fcn.00431314
lea ecx, [ebp - 0x94]
test al, al
je 0x4377fb
push dword [ebp - 0x3d8]
call fcn.004313b0
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
lea ecx, [ebp - 0x94]
call fcn.0043133d
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4377a2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004311e9
jmp 0x437978
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
je 0x43778e
push esi
mov dword [ebp - 0x3e0], ebx
call fcn.00482b18
pop ecx
push ebx
lea ecx, [ebp - 0x3e0]
push ecx
push esi
push eax
push edi
mov dword [ebp - 0x3d0], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x3e0], esi
je 0x437961
push dword [ebp - 0x3d0]
call fcn.0041a6e5
pop ecx
mov dword [ebp - 0x3d0], ebx
jmp 0x43778e
push edi
call fcn.00431393
call fcn.004345c4
test al, al
je 0x437813
call fcn.004345ca
mov edi, eax
jmp 0x437877
call fcn.004345be
push eax
lea ecx, [ebp - 0x19c]
call fcn.0043162b
push ebx
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 1
call fcn.0043133d
push eax
call fcn.0044f074
pop ecx
pop ecx
mov edi, eax
push edi
lea ecx, [ebp - 0x94]
call fcn.0043133d
push eax
call fcn.0045a47c
pop ecx
pop ecx
mov dword [ebp - 0x3d4], eax
cmp edi, ebx
je 0x437863
push edi
call fcn.0041a6e5
pop ecx
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], bl
call fcn.004311e9
mov edi, dword [ebp - 0x3d4]
cmp edi, ebx
je 0x43778e
push 0xffffffffffffffff
push dword [ebp - 0x3d8]
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x3dc], ebx
call fcn.00431607
push 0x4a1b00
push 0x4a1578
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 2
call fcn.004317fd
lea eax, [ebp - 0x3cc]
push eax
lea eax, [ebp - 0x3dc]
push eax
push 1
lea ecx, [ebp - 0x118]
call fcn.0043133d
push eax
push edi
call fcn.004589f6
add esp, 0x14
test eax, eax
je 0x4378ed
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], bl
call fcn.004311e9
jmp 0x43778e
mov esi, dword [ebp - 0x1a0]
cmp esi, ebx
je 0x4378da
push esi
call fcn.00482b18
push esi
push eax
push dword [ebp - 0x3dc]
mov dword [ebp - 0x3d0], eax
push edi
call fcn.0045a4e3
add esp, 0x14
cmp eax, ebx
je 0x437943
cmp eax, 0x600
je 0x437943
push dword [ebp - 0x3d0]
call fcn.0041a6e5
pop ecx
mov dword [ebp - 0x3d0], ebx
call fcn.004345c4
test al, al
jne 0x4378da
push edi
call fcn.0045a4fe
pop ecx
jmp 0x4378da
call fcn.004345c4
test al, al
jne 0x437953
push edi
call fcn.0045a4fe
pop ecx
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], bl
call fcn.004311e9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004311e9
cmp dword [ebp - 0x3d0], ebx
jne 0x4379ee
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp - 0x3d8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4379ee
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
je 0x4379ee
push esi
mov dword [ebp - 0x3d4], ebx
call fcn.00482b18
pop ecx
push ebx
lea ecx, [ebp - 0x3d4]
push ecx
push esi
push eax
push edi
mov dword [ebp - 0x3d0], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x3d4], esi
je 0x4379ee
push dword [ebp - 0x3d0]
call fcn.0041a6e5
pop ecx
mov dword [ebp - 0x3d0], ebx
lea eax, [ebp - 0x3e8]
push eax
push ebx
push esi
push dword [ebp - 0x3d0]
call dword [sym.imp.GDI32.dll_AddFontMemResourceEx]
push dword [ebp - 0x3d0]
mov esi, eax
call fcn.0041a6e5
pop ecx
mov ecx, dword [ebp - 0x3e4]
push esi
add ecx, 0x50c
call fcn.00431054
call fcn.0041cab3
ret 4