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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c6260
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 0x472b0c
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.004172c6
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x472a55
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x472a4b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x472fd3
push edx
push ecx
call fcn.00539e76
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 0x472a90
lea ecx, [ebp - 0x60]
mov dword [ebp - 4], eax
call fcn.00405f7b
jmp 0x472f15
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
jne 0x472ab3
lea ecx, [ebp - 0x60]
mov dword [ebp - 4], 0xffffffff
call fcn.00405f7b
jmp 0x472f15
push esi
mov dword [ebp - 0x2b0], 0
call fcn.0053a514
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 0x472ea5
push edi
call fcn.0053a51d
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
xor edi, edi
call fcn.00405f7b
jmp 0x472f15
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.004172c6
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x472b88
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x472b7e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x472fd8
push edx
push ecx
call fcn.00539e76
add esp, 8
cmp byte [0x62a504], 0
je 0x472ba2
mov ebx, dword [0x62a500]
mov dword [ebp - 0x2b0], ebx
jmp 0x472cda
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.0047fc60
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.00499200
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 0x472c5f
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x472c55
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x472fdd
push edx
push ecx
call fcn.00539e76
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 0x472cc6
mov ecx, dword [ebp - 0x7c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x472cbc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x472fe2
push edx
push ecx
call fcn.00539e76
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 0x472cf2
lea ecx, [ebp - 0x60]
mov dword [ebp - 4], 0xffffffff
call fcn.00405f7b
jmp 0x472f15
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 0x5ff854
push 0
push dword [ebp - 0x34]
mov byte [ebp - 4], 5
push eax
call fcn.0045e820
mov ebx, eax
add esp, 0x14
cmp ebx, dword [0x625120]
je 0x472d95
push 1
push 0x60551c
push 1
push ebx
lea ecx, [ebp - 0x44]
call fcn.00429580
cmp dword [ebp - 0x30], 8
lea eax, [ebx + 2]
push 1
push 0x5ff854
push eax
push dword [ebp - 0x34]
lea ecx, [ebp - 0x44]
cmovae ecx, dword [ebp - 0x44]
push ecx
call fcn.0045e820
mov ebx, eax
add esp, 0x14
cmp ebx, dword [0x625120]
jne 0x472d53
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.00498920
add esp, 0x14
test eax, eax
je 0x472de0
lea ecx, [ebp - 0x44]
call fcn.00405f7b
lea ecx, [ebp - 0x60]
mov dword [ebp - 4], 0xffffffff
call fcn.00405f7b
jmp 0x472f15
mov esi, dword [ebp - 0x80]
test esi, esi
je 0x472dc4
push esi
call fcn.0053a514
push esi
mov edi, eax
push edi
push dword [ebp - 0x2b8]
push ebx
call fcn.004997f0
add esp, 0x14
test eax, eax
je 0x472e2a
cmp eax, 0x600
je 0x472e2a
push edi
call fcn.0053a51d
add esp, 4
xor edi, edi
cmp byte [0x62a504], 0
jne 0x472dc4
push ebx
call fcn.00498480
add esp, 4
jmp 0x472dc4
cmp byte [0x62a504], 0
jne 0x472e3c
push ebx
call fcn.00498480
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 0x472e91
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x472e87
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x472fe7
push edx
push ecx
call fcn.00539e76
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 0x472efd
mov ecx, dword [ebp - 0x60]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x472ef3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x472fec
push edx
push ecx
call fcn.00539e76
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 0x472f87
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 0x472f87
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x472f87
push esi
mov dword [ebp - 0x2b4], 0
call fcn.0053a514
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 0x472f87
push edi
call fcn.0053a51d
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.0053a51d
mov ecx, dword [ebp - 0x2bc]
add esp, 4
add ecx, 0x2f8
push esi
call fcn.00480d90
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.00539e65
mov esp, ebp
pop ebp
ret 8
call fcn.0059138f
call fcn.0059138f
call fcn.0059138f
call fcn.0059138f
call fcn.0059138f
call fcn.0059138f
int3