Function at 0x45709c
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 0x4572f9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00456f74
test al, al
jne 0x4572de
mov eax, dword [ebp - 4]
cmp dword [eax + 0x58], 0
jne 0x4570ed
mov ecx, 0x457310
mov dl, 1
mov eax, dword [0x456ad8]
call fcn.0040b404
call fcn.004034ac
mov eax, dword [ebp - 4]
call fcn.00456e70
test al, al
je 0x457131
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
call fcn.00457acc
test al, al
jne 0x457131
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, 0x457328
mov dl, 1
mov eax, dword [0x456ad8]
call fcn.0040b440
call fcn.004034ac
mov eax, dword [ebp - 4]
mov bx, 0xfff0
call fcn.00402f48
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.00456f24
and eax, 0x7f
mov ebx, dword [eax*4 + 0x45e4ec]
or ebx, 0x80
mov eax, dword [ebp - 4]
call fcn.00456f3c
and eax, 0x7f
or ebx, dword [eax*4 + 0x45e4f4]
mov eax, dword [ebp - 4]
call fcn.00456edc
and eax, 0x7f
or ebx, dword [eax*4 + 0x45e4dc]
mov eax, dword [ebp - 4]
call fcn.00456f00
and eax, 0x7f
or ebx, dword [eax*4 + 0x45e4e4]
push ebx
mov eax, dword [ebp - 4]
call fcn.00456e70
xor ebx, ebx
mov bl, al
mov eax, dword [ebp - 4]
call fcn.00456eb8
and eax, 0x7f
lea eax, [eax*8 + 0x45e4cc]
mov eax, dword [eax + ebx*4]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.00456ea0
and eax, 0x7f
mov eax, dword [eax*4 + 0x45e4c4]
push eax
mov eax, dword [ebp - 4]
call fcn.00456e70
and eax, 0x7f
mov eax, dword [eax*4 + 0x45e4bc]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
call fcn.00403e20
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 0x45721e
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x24], edx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x24], 0
jne 0x45724f
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, 0x457340
call fcn.00409050
mov eax, dword [ebp - 0x10]
call fcn.004579f4
xor eax, eax
push ebp
push 0x4572af
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 0x4572a5
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, 0x45735c
call fcn.00409050
mov eax, dword [ebp - 0x14]
call fcn.004579f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4572d2
mov eax, dword [ebp - 4]
mov bx, 0xffef
call fcn.00402f48
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457300
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00403a00
ret