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

Disassembly:
push 0xffffffffffffffff
push 0x5e05c1
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x658aa8]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x658aa8]
xor eax, esp
push eax
lea eax, [esp + 0x234]
mov dword fs:[0], eax
mov edx, dword [0x664b30]
mov eax, dword [esp + 0x244]
mov edi, ecx
push 0xffffffffffffffff
lea ecx, [esp + 0x30]
xor ebx, ebx
push edx
lea esi, [esp + 0x30]
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], edi
xor ebp, ebp
mov dword [esp + 0x30], ecx
mov byte [esp + 0x34], bl
call fcn.00428e20
mov dword [esp + 0x23c], ebx
mov eax, dword [0x664b78]
cmp byte [eax], bl
jne 0x430072
test edi, edi
je 0x42ff8f
push edi
mov eax, esi
push eax
call fcn.00428d20
mov ecx, dword [esp + 0x28]
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
jne 0x42ffda
mov dword [esp + 0x23c], edi
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x2c]
cmp eax, edx
je 0x430280
push eax
call fcn.0049b045
add esp, 4
jmp 0x430280
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
jne 0x43000e
mov dword [esp + 0x23c], edi
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x2c]
cmp eax, ecx
je 0x430280
push eax
call fcn.0049b045
add esp, 4
jmp 0x430280
push ebx
mov dword [esp + 0x20], 0
call fcn.0048fcef
add esp, 4
push 0
lea edx, [esp + 0x20]
push edx
push ebx
mov ebp, eax
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x1c], ebx
je 0x43025c
push ebp
call fcn.0048fcfa
mov dword [esp + 0x240], edi
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x30]
add esp, 4
xor ebp, ebp
cmp eax, ecx
je 0x430280
push eax
call fcn.0049b045
add esp, 4
jmp 0x430280
push eax
lea edx, [esp + 0x2c]
push edx
call fcn.00428d20
cmp byte [0x664959], 0
je 0x43008e
mov edi, dword [0x66bde8]
jmp 0x4300f6
mov ecx, dword [0x664bc0]
push 0xffffffffffffffff
lea eax, [esp + 0xc0]
push ecx
lea esi, [esp + 0xc0]
mov dword [esp + 0xc0], eax
mov byte [esp + 0xc4], 0
call fcn.00428e20
mov byte [esp + 0x23c], 1
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0xb8]
push 2
push 0
push edx
call fcn.004499d0
mov edi, eax
mov eax, dword [esp + 0xc4]
lea ecx, [esp + 0xc8]
add esp, 0xc
cmp eax, ecx
je 0x4300f6
push eax
call fcn.0049b045
add esp, 4
test edi, edi
jne 0x43010a
mov dword [esp + 0x23c], 0xffffffff
jmp 0x42ffbc
mov ecx, dword [esp + 0x18]
push 0xffffffffffffffff
lea eax, [esp + 0x78]
push ecx
lea esi, [esp + 0x78]
mov dword [esp + 0x24], 0
mov dword [esp + 0x78], eax
mov byte [esp + 0x7c], 0
call fcn.00428e20
mov edx, esi
push edx
mov edx, 0x637a14
mov ecx, 0x6350f8
mov byte [esp + 0x240], 2
call fcn.00429240
cmp dword [edi], 1
je 0x43015a
mov dword [0x66be20], 0x80000
jmp 0x43017d
mov edx, dword [esp + 0x70]
mov esi, dword [edi + 4]
lea eax, [esp + 0x100]
push eax
lea ecx, [esp + 0x20]
push ecx
push edx
call fcn.004497d0
mov dword [0x66be20], eax
test eax, eax
je 0x4301a2
mov eax, dword [esp + 0x70]
lea ecx, [esp + 0x74]
cmp eax, ecx
je 0x430192
push eax
call fcn.0049b045
add esp, 4
mov dword [esp + 0x23c], 0xffffffff
jmp 0x42ffbc
mov ebx, dword [esp + 0x228]
test ebx, ebx
je 0x43017d
push ebx
call fcn.0048fcef
add esp, 4
cmp dword [edi], 1
mov ebp, eax
je 0x4301c9
mov dword [0x66be20], 0x80000
jmp 0x4301e9
mov ecx, dword [esp + 0x1c]
mov eax, dword [edi + 4]
push ebx
push ebp
push ecx
push eax
call fcn.004498a0
mov dword [0x66be20], eax
test eax, eax
je 0x430235
cmp eax, 0x600
je 0x430235
push ebp
call fcn.0048fcfa
add esp, 4
xor ebp, ebp
cmp byte [0x664959], 0
jne 0x430206
push edi
call fcn.00449b20
add esp, 4
mov eax, dword [esp + 0x70]
lea edx, [esp + 0x74]
cmp eax, edx
je 0x43021b
push eax
call fcn.0049b045
add esp, 4
mov dword [esp + 0x23c], 0xffffffff
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x2c]
cmp eax, ecx
jmp 0x42ffc6
cmp byte [0x664959], 0
jne 0x430247
push edi
call fcn.00449b20
add esp, 4
mov eax, dword [esp + 0x70]
lea edx, [esp + 0x74]
cmp eax, edx
je 0x43025c
push eax
call fcn.0049b045
add esp, 4
mov dword [esp + 0x23c], 0xffffffff
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x2c]
cmp eax, ecx
je 0x43027c
push eax
call fcn.0049b045
add esp, 4
test ebp, ebp
jne 0x4302ee
mov edx, dword [esp + 0x18]
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4302ee
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x4302ee
push ebx
mov dword [esp + 0x1c], 0
call fcn.0048fcef
add esp, 4
push 0
mov ebp, eax
lea eax, [esp + 0x1c]
push eax
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x18], ebx
je 0x4302ee
push ebp
call fcn.0048fcfa
add esp, 4
xor ebp, ebp
lea ecx, [esp + 0x24]
push ecx
push 0
push ebx
push ebp
call dword [sym.imp.GDI32.dll_AddFontMemResourceEx]
push ebp
mov esi, eax
call fcn.0048fcfa
add esp, 4
push esi
mov esi, dword [esp + 0x24]
add esi, 0x3a0
call fcn.00428b40
mov ecx, dword [esp + 0x234]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.00499a1c
add esp, 0x22c
ret 4