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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
sub eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x454698
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
sub ecx, ecx
sub edx, edx
mov eax, dword [ebp + 0x14]
call fcn.0045364c
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x45467c
xor edx, edx
push ebp
push 0x454675
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetFileSize
push eax
pop ebx
push ebx
pop eax
call fcn.00402a50
mov dword [ebp - 8], eax
sub edx, edx
push ebp
push 0x454653
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
lea eax, [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_ReadFile
test eax, eax
je 0x45463d
cmp ebx, dword [ebp - 0x10]
jne 0x45463d
lea eax, [ebp - 0x14]
push eax
mov ax, word [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00454334
or eax, eax
je 0x4544e5
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 4]
push eax
lea eax, [ebp - 0x18]
push 1
pop ecx
pushal
popal
mov edx, dword [0x4543c0]
call fcn.0040602c
add esp, 4
mov dword [ebp - 0x1c], 0x7fffffff
mov eax, dword [ebp - 0x18]
call fcn.00405e58
mov esi, eax
or esi, esi
jl 0x4544ec
inc esi
sub ebx, ebx
push ebx
pop eax
shl eax, 3
sub eax, ebx
mov edx, dword [ebp - 0x14]
movzx eax, word [edx + eax*2 + 0x12]
mov edx, dword [ebp - 0x18]
mov dword [edx + ebx*4], eax
cmp eax, dword [ebp - 0x1c]
jge 0x4544df
mov dword [ebp - 0x1c], eax
inc ebx
dec esi
jne 0x4544c2
jmp 0x4544ec
mov dword [ebp - 0x1c], 0x32
mov ax, word [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.004546ac
mov eax, dword [ebp - 8]
movzx eax, word [eax + 4]
imul eax, eax, 0xe
add eax, 6
call fcn.00402a50
mov dword [ebp - 0x14], eax
sub eax, eax
push ebp
push 0x454636
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
nop
push 6
nop
pop ecx
call fcn.00402c14
mov eax, dword [ebp - 8]
movzx esi, word [eax + 4]
dec esi
or esi, esi
jl 0x4545f7
inc esi
xor ebx, ebx
mov eax, ebx
shl eax, 3
sub eax, ebx
mov edx, dword [ebp - 0x14]
lea edx, [edx + eax*2 + 6]
push ebx
pop edi
add edi, edi
mov eax, dword [ebp - 8]
lea eax, [eax + edi*8 + 6]
push 0xe
pop ecx
push ebx
pop ebx
call fcn.00402c14
mov eax, dword [ebp - 0x18]
call fcn.00405e50
cmp ebx, eax
jge 0x45458b
mov eax, dword [ebp - 0x18]
mov ax, word [eax + ebx*4]
push ebx
pop edx
shl edx, 3
sub edx, ebx
mov ecx, dword [ebp - 0x14]
mov word [ecx + edx*2 + 0x12], ax
jmp 0x4545a4
push ebp
lea eax, [ebp - 0x1c]
call fcn.0045435c
pop ecx
mov edx, ebx
shl edx, 3
sub edx, ebx
mov ecx, dword [ebp - 0x14]
mov word [ecx + edx*2 + 0x12], ax
mov eax, dword [ebp - 8]
mov eax, dword [eax + edi*8 + 0xe]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + edi*8 + 0x12]
add eax, dword [ebp - 8]
push eax
mov ax, word [ebp + 0x10]
push eax
mov eax, ebx
shl eax, 3
sub eax, ebx
mov edx, dword [ebp - 0x14]
movzx eax, word [edx + eax*2 + 0x12]
push eax
push 3
mov eax, dword [ebp + 8]
push eax
call fcn.00454108
or eax, eax
jne 0x4545ef
call fcn.00404804
call fcn.00404804
call fcn.00404804
jmp 0x45467c
inc ebx
dec esi
jne 0x454544
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 4]
imul eax, eax, 0xe
add eax, 6
push eax
mov eax, dword [ebp - 0x14]
push eax
mov ax, word [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
push 0xe
mov eax, dword [ebp + 8]
push eax
call fcn.00454108
mov dword [ebp - 4], eax
sub eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45463d
mov eax, dword [ebp - 0x14]
call fcn.00402a80
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45465a
mov eax, dword [ebp - 8]
call fcn.00402a80
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45469f
lea eax, [ebp - 0x18]
mov edx, dword [0x4543c0]
call fcn.00406038
ret