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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c6520
mov eax, dword fs:[0]
push eax
sub esp, 0x2b4
mov eax, dword [0x624500]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2bc], ecx
push dword [0x624094]
xor esi, esi
mov dword [ebp - 0x4c], 7
xor edi, edi
mov dword [ebp - 0x50], esi
cmp dword [0x624098], 8
mov eax, 0x624084
cmovae eax, dword [0x624084]
xor ecx, ecx
mov word [ebp - 0x60], cx
lea ecx, [ebp - 0x60]
push eax
call fcn.0040612d
mov dword [ebp - 0x48], esi
mov ecx, dword [0x6240b0]
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 7
test ecx, ecx
jne 0x472c1c
push dword [ebp + 0xc]
xor eax, eax
lea ecx, [ebp - 0x28]
push dword [ebp + 8]
mov word [ebp - 0x28], ax
call fcn.0040612d
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x60]
push eax
mov byte [ebp - 4], 1
call fcn.004173e6
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x472b65
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x472b5b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4730e3
push edx
push ecx
call fcn.0053a186
add esp, 8
cmp dword [ebp - 0x4c], 8
lea eax, [ebp - 0x60]
push 0
cmovae eax, dword [ebp - 0x60]
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x472ba0
lea ecx, [ebp - 0x60]
mov dword [ebp - 4], eax
call fcn.00405f7b
jmp 0x473025
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
jne 0x472bc3
lea ecx, [ebp - 0x60]
mov dword [ebp - 4], 0xffffffff
call fcn.00405f7b
jmp 0x473025
push esi
mov dword [ebp - 0x2b0], 0
call fcn.0053a821
add esp, 4
mov edi, eax
lea eax, [ebp - 0x2b0]
push 0
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 - 0x2b0], esi
je 0x472fb5
push edi
call fcn.0053a82a
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
xor edi, edi
call fcn.00405f7b
jmp 0x473025
cmp dword [0x6240b4], 8
mov eax, 0x6240a0
push ecx
cmovae eax, dword [0x6240a0]
lea ecx, [ebp - 0x28]
xor edx, edx
push eax
mov word [ebp - 0x28], dx
call fcn.0040612d
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x60]
push eax
mov byte [ebp - 4], 2
call fcn.004173e6
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x472c98
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x472c8e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4730e8
push edx
push ecx
call fcn.0053a186
add esp, 8
cmp byte [0x62a4e4], 0
je 0x472cb2
mov ebx, dword [0x62a4e0]
mov dword [ebp - 0x2b0], ebx
jmp 0x472dea
cmp dword [0x6240d0], 8
mov eax, 0x6240bc
push dword [0x6240cc]
cmovae eax, dword [0x6240bc]
xor ecx, ecx
mov word [ebp - 0x7c], cx
lea ecx, [ebp - 0x7c]
push eax
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 7
call fcn.0040612d
mov dword [ebp - 0x64], 0
cmp dword [ebp - 0x68], 8
lea eax, [ebp - 0x7c]
push dword [ebp - 0x6c]
cmovae eax, dword [ebp - 0x7c]
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
call fcn.0047fd70
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 4
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x4c], 8
push ecx
cmovae eax, dword [ebp - 0x60]
push eax
call fcn.00498f10
mov edx, dword [ebp - 0x14]
add esp, 0x14
mov byte [ebp - 4], 3
mov ebx, eax
mov dword [ebp - 0x2b0], ebx
cmp edx, 0x10
jb 0x472d6f
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x472d65
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4730ed
push edx
push ecx
call fcn.0053a186
add esp, 8
cmp dword [ebp - 0x68], 8
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x18], 0
cmovae eax, dword [ebp - 0x7c]
xor ecx, ecx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x6c], 0
mov word [eax], cx
mov edx, dword [ebp - 0x68]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x472dd6
mov ecx, dword [ebp - 0x7c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x472dcc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4730f2
push edx
push ecx
call fcn.0053a186
add esp, 8
xor eax, eax
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 7
mov word [ebp - 0x7c], ax
test ebx, ebx
jne 0x472e02
lea ecx, [ebp - 0x60]
mov dword [ebp - 4], 0xffffffff
call fcn.00405f7b
jmp 0x473025
push dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x2b8], 0
push dword [ebp + 8]
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
call fcn.0040612d
mov dword [ebp - 0x2c], 0
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
push 1
cmovae eax, dword [ebp - 0x44]
push 0x5ff994
push 0
push dword [ebp - 0x34]
mov byte [ebp - 4], 5
push eax
call fcn.0045e920
mov ebx, eax
add esp, 0x14
cmp ebx, dword [0x625120]
je 0x472ea5
push 1
push 0x60567c
push 1
push ebx
lea ecx, [ebp - 0x44]
call fcn.004296a0
cmp dword [ebp - 0x30], 8
lea eax, [ebx + 2]
push 1
push 0x5ff994
push eax
push dword [ebp - 0x34]
lea ecx, [ebp - 0x44]
cmovae ecx, dword [ebp - 0x44]
push ecx
call fcn.0045e920
mov ebx, eax
add esp, 0x14
cmp ebx, dword [0x625120]
jne 0x472e63
xor edi, edi
xor esi, esi
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x2ac]
mov ebx, dword [ebp - 0x2b0]
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x2b8]
push ecx
push 1
push eax
push ebx
call fcn.00498630
add esp, 0x14
test eax, eax
je 0x472ef0
lea ecx, [ebp - 0x44]
call fcn.00405f7b
lea ecx, [ebp - 0x60]
mov dword [ebp - 4], 0xffffffff
call fcn.00405f7b
jmp 0x473025
mov esi, dword [ebp - 0x80]
test esi, esi
je 0x472ed4
push esi
call fcn.0053a821
push esi
mov edi, eax
push edi
push dword [ebp - 0x2b8]
push ebx
call fcn.00499500
add esp, 0x14
test eax, eax
je 0x472f3a
cmp eax, 0x600
je 0x472f3a
push edi
call fcn.0053a82a
add esp, 4
xor edi, edi
cmp byte [0x62a4e4], 0
jne 0x472ed4
push ebx
call fcn.00498190
add esp, 4
jmp 0x472ed4
cmp byte [0x62a4e4], 0
jne 0x472f4c
push ebx
call fcn.00498190
add esp, 4
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
mov dword [ebp - 0x34], 0
cmovae eax, dword [ebp - 0x44]
xor ecx, ecx
mov byte [ebp - 4], 0
mov word [eax], cx
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x472fa1
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x472f97
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4730f7
push edx
push ecx
call fcn.0053a186
add esp, 8
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
cmp dword [ebp - 0x4c], 8
lea eax, [ebp - 0x60]
mov dword [ebp - 0x50], 0
cmovae eax, dword [ebp - 0x60]
xor ecx, ecx
mov dword [ebp - 4], 0xffffffff
mov word [eax], cx
mov edx, dword [ebp - 0x4c]
cmp edx, 8
jb 0x47300d
mov ecx, dword [ebp - 0x60]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x473003
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4730fc
push edx
push ecx
call fcn.0053a186
add esp, 8
xor eax, eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 7
mov word [ebp - 0x60], ax
test edi, edi
jne 0x473097
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x473097
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x473097
push esi
mov dword [ebp - 0x2b4], 0
call fcn.0053a821
add esp, 4
mov edi, eax
lea eax, [ebp - 0x2b4]
push 0
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 - 0x2b4], esi
je 0x473097
push edi
call fcn.0053a82a
add esp, 4
xor edi, edi
lea eax, [ebp - 0x2c0]
push eax
push 0
push esi
push edi
call dword [sym.imp.GDI32.dll_AddFontMemResourceEx]
push edi
mov esi, eax
call fcn.0053a82a
mov ecx, dword [ebp - 0x2bc]
add esp, 4
add ecx, 0x2f8
push esi
call fcn.00480ea0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053a175
mov esp, ebp
pop ebp
ret 8
call fcn.0059164f
call fcn.0059164f
call fcn.0059164f
call fcn.0059164f
call fcn.0059164f
call fcn.0059164f
int3