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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5492cc
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x673114]
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 - 0x258], ecx
call fcn.00402160
mov eax, dword [0x675ab8]
test eax, eax
jne 0x4574e7
push 0x39c
call fcn.00474d5d
add esp, 4
mov dword [ebp - 0x244], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x4574d9
mov ecx, eax
call fcn.00431000
jmp 0x4574db
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x675ab8], eax
lea ecx, [ebp - 0x240]
push ecx
mov ecx, eax
call fcn.00431ce0
xor ebx, ebx
mov dword [ebp - 4], 1
mov dword [ebp - 0x244], ebx
mov dword [ebp - 0x254], ebx
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x24c], ebx
mov ecx, 0x43
mov byte [ebp - 4], 2
mov esi, str.sbmDPkJoCXHTPgjQOJK59cHJ7skhVpe97DR63VVbNbQVAGBvmd77sJnL7vlBCb9tnzb5YjkV2fJk5d55kw5qisBZfkeP9bYrZP7dzkgkZ9rXzneDUe5EgGHezGZtSb3tC7YKx1Hj0CWTJPEG9DVedVnLeqaoTts4b2oCxSnfWLiCiETl3DK0IkEYq29MqqOWvrr6oLH6DeLRV1l5E8pIy2qdvg2JztShsVNoh5uV34YZpdpYulkwYubGfPUqh1kgzPooE7lUVAZhQ
mov dword [ebp - 0x1fc], 0xf
lea edi, [ebp - 0x1f8]
mov dword [ebp - 0x200], ebx
rep movsd dword es:[edi], dword [esi]
mov byte [ebp - 0x210], bl
movsw word es:[edi], word [esi]
cmp byte [ebp - 0x1f8], bl
jne 0x457550
xor ecx, ecx
jmp 0x457569
lea ecx, [ebp - 0x1f8]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x457560
sub ecx, edx
push ecx
lea eax, [ebp - 0x1f8]
push eax
lea ecx, [ebp - 0x210]
call fcn.00407d30
lea eax, [ebp - 0x210]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x254]
call fcn.00407f90
mov eax, dword [ebp - 0x1fc]
mov byte [ebp - 4], 2
cmp eax, 0x10
jb 0x4575b4
inc eax
lea ecx, [ebp - 0x210]
push eax
push dword [ebp - 0x210]
call fcn.00407e30
cmp dword [ebp - 0x22c], 8
lea eax, [ebp - 0x240]
push 0
cmovae eax, dword [ebp - 0x240]
push 0x80
push 4
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x45763d
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea eax, [ebx + 1]
push eax
call fcn.00474ddd
mov edi, eax
add esp, 4
mov dword [ebp - 0x244], edi
test edi, edi
je 0x457636
call fcn.0047e472
lea eax, [ebx + 1]
push eax
push 0
push edi
call fcn.004f14e0
add esp, 0xc
call fcn.0047c752
push 0
lea eax, [ebp - 0x248]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0047e8e0
cmp ebx, 0x100000
jg 0x457654
call fcn.00402160
jmp 0x45777e
mov dword [ebp - 0x204], 0
mov dword [ebp - 0x200], 0
mov dword [ebp - 0x1fc], 0
mov ecx, 0x35
mov byte [ebp - 4], 4
mov esi, str.aFmlkpCEiouiL5TAQOaDzC7g95IfUR0UKKaJc15o5Gl9VlLVdRqdzq60D1ViCUT31aUJrYYGvm9uPJfmoN0UFMQX1QLgoY2XV4MhoND5kuZXIzfu7xiFo7trHYlxsjFrVStAatKNilrhdC0l9bPUuBUxclsa9tNcS02FCSejILQsT7pij9HV30pB8vBpcyahkKD0NupkvmjkcerfUHENB9
mov dword [ebp - 0x214], 0xf
lea edi, [ebp - 0xe8]
mov dword [ebp - 0x218], 0
rep movsd dword es:[edi], dword [esi]
mov byte [ebp - 0x228], 0
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
cmp byte [ebp - 0xe8], 0
jne 0x4576b3
xor ecx, ecx
jmp 0x4576c9
lea ecx, [ebp - 0xe8]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4576c0
sub ecx, edx
push ecx
lea eax, [ebp - 0xe8]
push eax
lea ecx, [ebp - 0x228]
call fcn.00407d30
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x204]
call fcn.00407f90
mov eax, dword [ebp - 0x214]
mov byte [ebp - 4], 4
cmp eax, 0x10
jb 0x457714
inc eax
lea ecx, [ebp - 0x228]
push eax
push dword [ebp - 0x228]
call fcn.00407e30
mov ecx, dword [ebp - 0x258]
cmp dword [ecx + 0x28], 8
lea eax, [ecx + 0x14]
jb 0x457725
mov eax, dword [eax]
push ebx
push dword [ebp - 0x244]
push eax
call fcn.00459560
mov esi, dword [ebp - 0x204]
test esi, esi
je 0x45777e
push dword [ebp - 0x248]
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x200]
push esi
call fcn.004056a0
mov ecx, dword [ebp - 0x1fc]
mov eax, 0x2aaaaaab
sub ecx, esi
add esp, 0x10
imul ecx
lea ecx, [ebp - 0x204]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.00407e90
mov esi, dword [ebp - 0x254]
test esi, esi
je 0x4577ca
push dword [ebp - 0x248]
lea ecx, [ebp - 0x254]
push ecx
push dword [ebp - 0x250]
push esi
call fcn.004056a0
mov ecx, dword [ebp - 0x24c]
mov eax, 0x2aaaaaab
sub ecx, esi
add esp, 0x10
imul ecx
lea ecx, [ebp - 0x254]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.00407e90
mov eax, dword [ebp - 0x22c]
cmp eax, 8
jb 0x4577e8
inc eax
lea ecx, [ebp - 0x240]
push eax
push dword [ebp - 0x240]
call fcn.00402750
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.00474d9e
mov esp, ebp
pop ebp
ret