Function at 0x464a64
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 0x464cc5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004648b8
test al, al
jne 0x464caa
mov eax, dword [ebp - 4]
cmp dword [eax + 0x58], 0
jne 0x464ab5
mov ecx, 0x464cdc
mov dl, 1
mov eax, dword [0x463eac]
call fcn.0040cb04
call fcn.00403d14
mov eax, dword [ebp - 4]
call fcn.00464268
test al, al
je 0x464af9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
call fcn.00465534
test al, al
jne 0x464af9
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, 0x464cf4
mov dl, 1
mov eax, dword [0x463eac]
call fcn.0040cb4c
call fcn.00403d14
mov eax, dword [ebp - 4]
mov bx, 0xfff0
call fcn.0040377c
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.0046467c
and eax, 0x7f
mov ebx, dword [eax*4 + 0x4734ec]
or ebx, 0x80
mov eax, dword [ebp - 4]
call fcn.00464744
and eax, 0x7f
or ebx, dword [eax*4 + 0x4734f4]
mov eax, dword [ebp - 4]
call fcn.004644dc
and eax, 0x7f
or ebx, dword [eax*4 + 0x4734dc]
mov eax, dword [ebp - 4]
call fcn.004645ac
and eax, 0x7f
or ebx, dword [eax*4 + 0x4734e4]
push ebx
mov eax, dword [ebp - 4]
call fcn.00464268
xor ebx, ebx
mov bl, al
mov eax, dword [ebp - 4]
call fcn.0046440c
and eax, 0x7f
lea eax, [eax*8 + 0x4734cc]
mov eax, dword [eax + ebx*4]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.00464344
and eax, 0x7f
mov eax, dword [eax*4 + 0x4734c4]
push eax
mov eax, dword [ebp - 4]
call fcn.00464268
and eax, 0x7f
mov eax, dword [eax*4 + 0x4734bc]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
call fcn.00404834
push eax
call sub.kernel32.dll_CreateFileA_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x24], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x24], 0xffffffff
jne 0x464be8
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x24], edx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x24], 0
jne 0x464c19
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, 0x464d0c
call fcn.0040a2f4
mov eax, dword [ebp - 0x10]
call fcn.00465448
xor eax, eax
push ebp
push 0x464c7b
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 edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0xffffffff
jne 0x464c71
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, 0x464d28
call fcn.0040a2f4
mov eax, dword [ebp - 0x14]
call fcn.00465448
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x464c9e
mov eax, dword [ebp - 4]
mov bx, 0xffef
call fcn.0040377c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x464ccc
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004043ec
ret