Function at 0x464244
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 0x4644a1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0046411c
test al, al
jne 0x464486
mov eax, dword [ebp - 4]
cmp dword [eax + 0x58], 0
jne 0x464295
mov ecx, 0x4644b8
mov dl, 1
mov eax, dword [0x46387c]
call fcn.0040ca50
call fcn.00403d14
mov eax, dword [ebp - 4]
call fcn.00463c14
test al, al
je 0x4642d9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
call fcn.00464c74
test al, al
jne 0x4642d9
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, 0x4644d0
mov dl, 1
mov eax, dword [0x46387c]
call fcn.0040ca98
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.00463f4c
and eax, 0x7f
mov ebx, dword [eax*4 + 0x46d4ec]
or ebx, 0x80
mov eax, dword [ebp - 4]
call fcn.00463fe8
and eax, 0x7f
or ebx, dword [eax*4 + 0x46d4f4]
mov eax, dword [ebp - 4]
call fcn.00463e04
and eax, 0x7f
or ebx, dword [eax*4 + 0x46d4dc]
mov eax, dword [ebp - 4]
call fcn.00463ea8
and eax, 0x7f
or ebx, dword [eax*4 + 0x46d4e4]
push ebx
mov eax, dword [ebp - 4]
call fcn.00463c14
xor ebx, ebx
mov bl, al
mov eax, dword [ebp - 4]
call fcn.00463d60
and eax, 0x7f
lea eax, [eax*8 + 0x46d4cc]
mov eax, dword [eax + ebx*4]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.00463cc4
and eax, 0x7f
mov eax, dword [eax*4 + 0x46d4c4]
push eax
mov eax, dword [ebp - 4]
call fcn.00463c14
and eax, 0x7f
mov eax, dword [eax*4 + 0x46d4bc]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
call fcn.00404834
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 0x4643c6
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x24], edx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x24], 0
jne 0x4643f7
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, 0x4644e8
call fcn.0040a240
mov eax, dword [ebp - 0x10]
call fcn.00464b9c
xor eax, eax
push ebp
push 0x464457
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 0x46444d
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, 0x464504
call fcn.0040a240
mov eax, dword [ebp - 0x14]
call fcn.00464b9c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46447a
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 0x4644a8
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004043ec
ret