Function at 0x457348
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4575a5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00457220
test al, al
jne 0x45758a
mov eax, dword [ebp - 4]
cmp dword [eax + 0x58], 0
jne 0x457399
mov ecx, 0x4575bc
mov dl, 1
mov eax, dword [0x456d84]
call fcn.0040b53c
call fcn.004034bc
mov eax, dword [ebp - 4]
call fcn.0045711c
test al, al
je 0x4573dd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
call fcn.00457d78
test al, al
jne 0x4573dd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, 0x4575d4
mov dl, 1
mov eax, dword [0x456d84]
call fcn.0040b578
call fcn.004034bc
mov eax, dword [ebp - 4]
mov bx, 0xfff0
call fcn.00402f58
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x28], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x2c], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x30], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x34], edx
push 0
mov eax, dword [ebp - 4]
call fcn.004571d0
and eax, 0x7f
mov ebx, dword [eax*4 + 0x4624ec]
or ebx, 0x80
mov eax, dword [ebp - 4]
call fcn.004571e8
and eax, 0x7f
or ebx, dword [eax*4 + 0x4624f4]
mov eax, dword [ebp - 4]
call fcn.00457188
and eax, 0x7f
or ebx, dword [eax*4 + 0x4624dc]
mov eax, dword [ebp - 4]
call fcn.004571ac
and eax, 0x7f
or ebx, dword [eax*4 + 0x4624e4]
push ebx
mov eax, dword [ebp - 4]
call fcn.0045711c
xor ebx, ebx
mov bl, al
mov eax, dword [ebp - 4]
call fcn.00457164
and eax, 0x7f
lea eax, [eax*8 + 0x4624cc]
mov eax, dword [eax + ebx*4]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.0045714c
and eax, 0x7f
mov eax, dword [eax*4 + 0x4624c4]
push eax
mov eax, dword [ebp - 4]
call fcn.0045711c
and eax, 0x7f
mov eax, dword [eax*4 + 0x4624bc]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
call fcn.00403eb4
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x24], ebx
cmp ebx, 0xffffffff
jne 0x4574ca
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x24], edx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x24], 0
jne 0x4574fb
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0xb
lea edx, [ebp - 0xc]
xor ecx, ecx
mov eax, 0x4575ec
call fcn.00409188
mov eax, dword [ebp - 0x10]
call fcn.00457ca0
xor eax, eax
push ebp
push 0x45755b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
add eax, 0x2c
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
push eax
call sub.kernel32.dll_GetFileSize_1
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x28], ebx
cmp ebx, 0xffffffff
jne 0x457551
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0xb
lea edx, [ebp - 0xc]
xor ecx, ecx
mov eax, 0x457608
call fcn.00409188
mov eax, dword [ebp - 0x14]
call fcn.00457ca0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45757e
mov eax, dword [ebp - 4]
mov bx, 0xffef
call fcn.00402f58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4575ac
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00403a94
ret