Function at 0x51e1e8
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xe
push 0
push 0
dec ecx
jne 0x51e1f0
push ecx
push ebx
push esi
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x51e686
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.004059bc
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.004059bc
mov eax, dword [ebp - 0x18]
add eax, 0x1c
call fcn.004059bc
mov eax, dword [ebp - 8]
cmp dword [eax + 0x34], 0
jne 0x51e271
mov eax, dword [ebp - 8]
cmp dword [eax + 0x7c], 0
je 0x51e649
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x40]
call fcn.004059f8
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 0x7c]
test ebx, ebx
je 0x51e2cf
mov eax, ebx
call fcn.00516618
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.005167dc
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 0x51e327
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 0x34]
test ebx, ebx
je 0x51e327
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 0x51e327
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 0x51e369
push ebp
call fcn.0051e108
pop ecx
test al, al
je 0x51e369
push 0
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetFileSize_1
mov ecx, eax
cmp ecx, 0xffffffff
je 0x51e369
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.004888cc
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
call fcn.0040caa0
mov eax, dword [ebp - 0x24]
mov edx, 0x51e698
call fcn.00405d3c
jne 0x51e535
push ebp
call fcn.0051e108
pop ecx
test al, al
je 0x51e535
mov dl, 1
mov eax, dword [0x5194e0]
call fcn.0051b710
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x51e482
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 0x51e46c
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0x1c]
call fcn.0051bbe8
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call fcn.0040ccc4
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
add eax, 0x70
call fcn.004059f8
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0x1c]
call fcn.0051b92c
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x34]
call fcn.0040ccc4
mov eax, dword [ebp - 0x34]
xor edx, edx
call fcn.00405d3c
je 0x51e444
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x1c]
call fcn.0051b92c
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x3c]
call fcn.0040ccc4
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 8]
add eax, 0x74
call fcn.004059f8
jmp 0x51e468
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 0x1c]
call fcn.0051bd00
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x44]
call fcn.0040ccc4
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 8]
add eax, 0x74
call fcn.004059f8
mov byte [ebp - 0x11], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51e489
mov eax, dword [ebp - 0x1c]
call fcn.004043f8
ret
cmp byte [ebp - 0x11], 0
jne 0x51e642
mov eax, dword [ebp - 8]
cmp dword [eax + 0x34], 0
je 0x51e642
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 0x51e642
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.0040546c
mov eax, dword [ebp - 0x5c]
lea edx, [ebp - 0x10]
call fcn.0040c844
mov eax, dword [ebp - 0x10]
mov edx, 0x51e6ac
call fcn.00405680
jne 0x51e5bf
lea ecx, [ebp - 0x64]
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.0051e6d4
mov eax, dword [ebp - 0x64]
lea edx, [ebp - 0x60]
call fcn.0040ccc4
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x18]
add eax, 0x18
call fcn.004059f8
jmp 0x51e63a
mov eax, dword [ebp - 0x10]
mov edx, 0x51e6bc
call fcn.00405680
jne 0x51e5f6
lea ecx, [ebp - 0x6c]
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.0051e6d4
mov eax, dword [ebp - 0x6c]
lea edx, [ebp - 0x68]
call fcn.0040ccc4
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x18]
add eax, 0x1c
call fcn.004059f8
jmp 0x51e63a
mov eax, dword [ebp - 0x10]
mov edx, 0x51e6cc
call fcn.00405680
jne 0x51e63a
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x1c]
xor edx, edx
call fcn.00405d3c
jne 0x51e63a
lea ecx, [ebp - 0x74]
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.0051e6d4
mov eax, dword [ebp - 0x74]
lea edx, [ebp - 0x70]
call fcn.0040ccc4
mov edx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x18]
add eax, 0x1c
call fcn.004059f8
inc ebx
dec esi
jne 0x51e566
push ebp
call fcn.0051e1c4
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51e68d
lea eax, [ebp - 0x74]
mov edx, 6
call fcn.004059d4
lea eax, [ebp - 0x5c]
mov edx, 5
call fcn.00405288
lea eax, [ebp - 0x48]
mov edx, 0xa
call fcn.004059d4
lea eax, [ebp - 0x10]
call fcn.00405264
ret