Function at 0x4faeec
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xe
push 0
push 0
dec ecx
jne 0x4faef4
push ecx
push ebx
push esi
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4fb38a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
add eax, 0x58
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
call fcn.00405934
mov eax, dword [ebp - 0x18]
mov byte [eax + 4], 0
mov eax, dword [ebp - 0x18]
mov dword [eax + 8], 1
mov eax, dword [ebp - 0x18]
xor edx, edx
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 0x18]
xor edx, edx
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x18]
xor edx, edx
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 0x18]
add eax, 0x18
call fcn.00405934
mov eax, dword [ebp - 0x18]
add eax, 0x1c
call fcn.00405934
mov eax, dword [ebp - 8]
cmp dword [eax + 0x34], 0
jne 0x4faf75
mov eax, dword [ebp - 8]
cmp dword [eax + 0x7c], 0
je 0x4fb34d
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x40]
call fcn.00405970
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 0x7c]
test ebx, ebx
je 0x4fafd3
mov eax, ebx
call fcn.004f2590
test al, 1
setne al
mov edx, dword [ebp - 0x18]
mov byte [edx + 4], al
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x7c]
call fcn.004f2754
add eax, 0x3e7
mov ecx, 0x3e8
cdq
idiv ecx
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0x18]
mov dword [eax + 8], 2
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x10], 0xabe0
jmp 0x4fb02b
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 0x34]
test ebx, ebx
je 0x4fb02b
push ebx
mov eax, dword [ebx]
call dword [eax + 0x14]
mov edx, dword [ebp - 0x18]
mov byte [edx + 4], al
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x18]
add eax, 0x10
push eax
mov eax, dword [ebp - 0x18]
add eax, 8
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x34]
push eax
mov eax, dword [eax]
call dword [eax + 8]
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x10], 0
jle 0x4fb02b
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x34]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
mov edx, dword [ebp - 0x18]
mov ecx, dword [edx + 0x10]
cdq
idiv ecx
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x14], 0
jle 0x4fb06d
push ebp
call fcn.004fae0c
pop ecx
test al, al
je 0x4fb06d
push 0
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetFileSize_1
mov ecx, eax
cmp ecx, 0xffffffff
je 0x4fb06d
mov eax, ecx
shl eax, 3
mov edx, dword [ebp - 0x18]
mov ecx, dword [edx + 0x14]
cdq
idiv ecx
mov ecx, 0x3e8
cdq
idiv ecx
mov edx, dword [ebp - 0x18]
mov dword [edx + 0xc], eax
mov byte [ebp - 0x11], 0
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x40]
call fcn.00488a78
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
call fcn.0040d510
mov eax, dword [ebp - 0x24]
mov edx, 0x4fb39c
call fcn.00405cb4
jne 0x4fb239
push ebp
call fcn.004fae0c
pop ecx
test al, al
je 0x4fb239
mov dl, 1
mov eax, dword [0x4f5614]
call fcn.004f7844
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x4fb186
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x14]
test al, al
je 0x4fb170
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0x1c]
call fcn.004f7d1c
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call fcn.0040d734
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
add eax, 0x70
call fcn.00405970
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0x1c]
call fcn.004f7a60
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x34]
call fcn.0040d734
mov eax, dword [ebp - 0x34]
xor edx, edx
call fcn.00405cb4
je 0x4fb148
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x1c]
call fcn.004f7a60
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x3c]
call fcn.0040d734
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 8]
add eax, 0x74
call fcn.00405970
jmp 0x4fb16c
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 0x1c]
call fcn.004f7e34
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x44]
call fcn.0040d734
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 8]
add eax, 0x74
call fcn.00405970
mov byte [ebp - 0x11], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fb18d
mov eax, dword [ebp - 0x1c]
call fcn.00404370
ret
cmp byte [ebp - 0x11], 0
jne 0x4fb346
mov eax, dword [ebp - 8]
cmp dword [eax + 0x34], 0
je 0x4fb346
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x34]
push eax
mov eax, dword [eax]
call dword [eax + 0x2c]
mov esi, eax
dec esi
test esi, esi
jl 0x4fb346
inc esi
xor ebx, ebx
push ebx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x34]
push eax
mov eax, dword [eax]
call dword [eax + 0x30]
mov edx, eax
lea eax, [ebp - 0x5c]
call fcn.004053e4
mov eax, dword [ebp - 0x5c]
lea edx, [ebp - 0x10]
call fcn.0040d2b4
mov eax, dword [ebp - 0x10]
mov edx, 0x4fb3b0
call fcn.004055f8
jne 0x4fb2c3
lea ecx, [ebp - 0x64]
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.004fb3d8
mov eax, dword [ebp - 0x64]
lea edx, [ebp - 0x60]
call fcn.0040d734
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x18]
add eax, 0x18
call fcn.00405970
jmp 0x4fb33e
mov eax, dword [ebp - 0x10]
mov edx, 0x4fb3c0
call fcn.004055f8
jne 0x4fb2fa
lea ecx, [ebp - 0x6c]
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.004fb3d8
mov eax, dword [ebp - 0x6c]
lea edx, [ebp - 0x68]
call fcn.0040d734
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x18]
add eax, 0x1c
call fcn.00405970
jmp 0x4fb33e
mov eax, dword [ebp - 0x10]
mov edx, 0x4fb3d0
call fcn.004055f8
jne 0x4fb33e
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x1c]
xor edx, edx
call fcn.00405cb4
jne 0x4fb33e
lea ecx, [ebp - 0x74]
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.004fb3d8
mov eax, dword [ebp - 0x74]
lea edx, [ebp - 0x70]
call fcn.0040d734
mov edx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x18]
add eax, 0x1c
call fcn.00405970
inc ebx
dec esi
jne 0x4fb26a
push ebp
call fcn.004faec8
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fb391
lea eax, [ebp - 0x74]
mov edx, 6
call fcn.0040594c
lea eax, [ebp - 0x5c]
mov edx, 5
call fcn.00405200
lea eax, [ebp - 0x48]
mov edx, 0xa
call fcn.0040594c
lea eax, [ebp - 0x10]
call fcn.004051dc
ret