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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7a9c73
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x8a0204]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x250], ecx
mov dword [ebp - 0x20c], 0
mov dword [ebp - 0x210], 0
call fcn.00462c30
push eax
lea ecx, [ebp - 0x54]
call fcn.0046f460
mov dword [ebp - 4], 0
call fcn.00462c50
mov ecx, eax
call fcn.00470490
movzx eax, al
test eax, eax
je 0x46125b
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x54]
call fcn.0046fa00
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
lea ecx, [ebp - 0x54]
call fcn.00402b70
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0xffffffff
jne 0x461181
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.0046f680
jmp 0x4614af
push 0
mov edx, dword [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 0
jne 0x4611b3
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.0046f680
jmp 0x4614af
mov dword [ebp - 0x220], 0
mov eax, dword [ebp - 0x210]
push eax
call fcn.0075c1c9
add esp, 4
mov dword [ebp - 0x230], eax
mov ecx, dword [ebp - 0x230]
mov dword [ebp - 0x20c], ecx
push 0
lea edx, [ebp - 0x220]
push edx
mov eax, dword [ebp - 0x210]
push eax
mov ecx, dword [ebp - 0x20c]
push ecx
mov edx, dword [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x220]
cmp ecx, dword [ebp - 0x210]
je 0x461256
mov edx, dword [ebp - 0x20c]
mov dword [ebp - 0x234], edx
mov eax, dword [ebp - 0x234]
push eax
call fcn.0075c181
add esp, 4
mov dword [ebp - 0x20c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.0046f680
jmp 0x4614af
jmp 0x461498
call fcn.00462c50
push eax
lea ecx, [ebp - 0x54]
call fcn.0046f9a0
mov dword [ebp - 0x214], 0
call fcn.00463020
movzx ecx, al
test ecx, ecx
je 0x46128c
call fcn.00462c60
mov dword [ebp - 0x214], eax
jmp 0x4612d3
call fcn.00462c70
push eax
lea ecx, [ebp - 0xdc]
call fcn.0046f460
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xdc]
call fcn.00402b70
push eax
lea ecx, [ebp - 0x54]
call fcn.00402b70
push eax
call fcn.004741f0
add esp, 8
mov dword [ebp - 0x214], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xdc]
call fcn.0046f680
cmp dword [ebp - 0x214], 0
jne 0x4612f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.0046f680
jmp 0x4614af
mov dword [ebp - 0x224], 0
push 0xffffffffffffffff
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x98]
call fcn.0046f4e0
mov byte [ebp - 4], 2
push 0x7b9244
push 0x7b9248
lea ecx, [ebp - 0x98]
call fcn.00470830
lea eax, [ebp - 0x208]
push eax
lea ecx, [ebp - 0x224]
push ecx
push 1
lea ecx, [ebp - 0x98]
call fcn.00402b70
push eax
mov edx, dword [ebp - 0x214]
push edx
call fcn.004734f0
add esp, 0x14
test eax, eax
je 0x461376
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x98]
call fcn.0046f680
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.0046f680
jmp 0x4614af
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 0
jne 0x4613ae
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x98]
call fcn.0046f680
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.0046f680
jmp 0x4614af
mov ecx, dword [ebp - 0x210]
push ecx
call fcn.0075c1c9
add esp, 4
mov dword [ebp - 0x238], eax
mov edx, dword [ebp - 0x238]
mov dword [ebp - 0x20c], edx
mov eax, dword [ebp - 0x210]
push eax
mov ecx, dword [ebp - 0x20c]
push ecx
mov edx, dword [ebp - 0x224]
push edx
mov eax, dword [ebp - 0x214]
push eax
call fcn.00474a60
add esp, 0x10
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0
je 0x46146e
cmp dword [ebp - 0x228], 0x600
je 0x46146e
mov ecx, dword [ebp - 0x20c]
mov dword [ebp - 0x23c], ecx
mov edx, dword [ebp - 0x23c]
push edx
call fcn.0075c181
add esp, 4
mov dword [ebp - 0x20c], 0
call fcn.00463020
movzx eax, al
test eax, eax
jne 0x46144e
mov ecx, dword [ebp - 0x214]
push ecx
call fcn.00473130
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x98]
call fcn.0046f680
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.0046f680
jmp 0x4614af
call fcn.00463020
movzx edx, al
test edx, edx
jne 0x461489
mov eax, dword [ebp - 0x214]
push eax
call fcn.00473130
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x98]
call fcn.0046f680
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.0046f680
xor ecx, ecx
jne 0x461105
cmp dword [ebp - 0x20c], 0
jne 0x4615a5
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0xffffffff
jne 0x4614ec
jmp 0x4615a5
push 0
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 0
jne 0x46150f
jmp 0x4615a5
mov dword [ebp - 0x22c], 0
mov ecx, dword [ebp - 0x210]
push ecx
call fcn.0075c1c9
add esp, 4
mov dword [ebp - 0x240], eax
mov edx, dword [ebp - 0x240]
mov dword [ebp - 0x20c], edx
push 0
lea eax, [ebp - 0x22c]
push eax
mov ecx, dword [ebp - 0x210]
push ecx
mov edx, dword [ebp - 0x20c]
push edx
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x22c]
cmp edx, dword [ebp - 0x210]
je 0x46159e
mov eax, dword [ebp - 0x20c]
mov dword [ebp - 0x244], eax
mov ecx, dword [ebp - 0x244]
push ecx
call fcn.0075c181
add esp, 4
mov dword [ebp - 0x20c], 0
jmp 0x4615a5
lea edx, [ebp - 0x254]
push edx
push 0
mov eax, dword [ebp - 0x210]
push eax
mov ecx, dword [ebp - 0x20c]
push ecx
call dword [sym.imp.GDI32.dll_AddFontMemResourceEx]
mov dword [ebp - 0x24c], eax
mov edx, dword [ebp - 0x20c]
mov dword [ebp - 0x248], edx
mov eax, dword [ebp - 0x248]
push eax
call fcn.0075c181
add esp, 4
mov dword [ebp - 0x20c], 0
mov ecx, dword [ebp - 0x24c]
push ecx
mov ecx, dword [ebp - 0x250]
add ecx, 0x388
call fcn.0046fa30
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0075c173
mov esp, ebp
pop ebp
ret 4