Function at 0x51e3dc
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xe
push 0
push 0
dec ecx
jne 0x51e3e4
push ecx
push ebx
push esi
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x51e87a
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 0x51e465
mov eax, dword [ebp - 8]
cmp dword [eax + 0x7c], 0
je 0x51e83d
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 0x51e4c3
mov eax, ebx
call fcn.0051680c
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.005169d0
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 0x51e51b
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 0x34]
test ebx, ebx
je 0x51e51b
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 0x51e51b
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 0x51e55d
push ebp
call fcn.0051e2fc
pop ecx
test al, al
je 0x51e55d
push 0
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetFileSize_1
mov ecx, eax
cmp ecx, 0xffffffff
je 0x51e55d
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, 0x51e88c
call fcn.00405d3c
jne 0x51e729
push ebp
call fcn.0051e2fc
pop ecx
test al, al
je 0x51e729
mov dl, 1
mov eax, dword [0x5196d4]
call fcn.0051b904
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x51e676
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 0x51e660
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0x1c]
call fcn.0051bddc
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.0051bb20
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x34]
call fcn.0040ccc4
mov eax, dword [ebp - 0x34]
xor edx, edx
call fcn.00405d3c
je 0x51e638
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x1c]
call fcn.0051bb20
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 0x51e65c
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 0x1c]
call fcn.0051bef4
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 0x51e67d
mov eax, dword [ebp - 0x1c]
call fcn.004043f8
ret
cmp byte [ebp - 0x11], 0
jne 0x51e836
mov eax, dword [ebp - 8]
cmp dword [eax + 0x34], 0
je 0x51e836
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 0x51e836
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, 0x51e8a0
call fcn.00405680
jne 0x51e7b3
lea ecx, [ebp - 0x64]
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.0051e8c8
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 0x51e82e
mov eax, dword [ebp - 0x10]
mov edx, 0x51e8b0
call fcn.00405680
jne 0x51e7ea
lea ecx, [ebp - 0x6c]
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.0051e8c8
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 0x51e82e
mov eax, dword [ebp - 0x10]
mov edx, 0x51e8c0
call fcn.00405680
jne 0x51e82e
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x1c]
xor edx, edx
call fcn.00405d3c
jne 0x51e82e
lea ecx, [ebp - 0x74]
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.0051e8c8
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 0x51e75a
push ebp
call fcn.0051e3b8
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51e881
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