Function at 0x51dd1c
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xe
push 0
push 0
dec ecx
jne 0x51dd24
push ecx
push ebx
push esi
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x51e1ba
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 0x51dda5
mov eax, dword [ebp - 8]
cmp dword [eax + 0x7c], 0
je 0x51e17d
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 0x51de03
mov eax, ebx
call fcn.00516158
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.0051631c
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 0x51de5b
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 0x34]
test ebx, ebx
je 0x51de5b
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 0x51de5b
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 0x51de9d
push ebp
call fcn.0051dc3c
pop ecx
test al, al
je 0x51de9d
push 0
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetFileSize_1
mov ecx, eax
cmp ecx, 0xffffffff
je 0x51de9d
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, 0x51e1cc
call fcn.00405d3c
jne 0x51e069
push ebp
call fcn.0051dc3c
pop ecx
test al, al
je 0x51e069
mov dl, 1
mov eax, dword [0x519020]
call fcn.0051b250
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x51dfb6
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 0x51dfa0
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0x1c]
call fcn.0051b728
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.0051b46c
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x34]
call fcn.0040ccc4
mov eax, dword [ebp - 0x34]
xor edx, edx
call fcn.00405d3c
je 0x51df78
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x1c]
call fcn.0051b46c
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 0x51df9c
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 0x1c]
call fcn.0051b840
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 0x51dfbd
mov eax, dword [ebp - 0x1c]
call fcn.004043f8
ret
cmp byte [ebp - 0x11], 0
jne 0x51e176
mov eax, dword [ebp - 8]
cmp dword [eax + 0x34], 0
je 0x51e176
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 0x51e176
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, 0x51e1e0
call fcn.00405680
jne 0x51e0f3
lea ecx, [ebp - 0x64]
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.0051e208
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 0x51e16e
mov eax, dword [ebp - 0x10]
mov edx, 0x51e1f0
call fcn.00405680
jne 0x51e12a
lea ecx, [ebp - 0x6c]
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.0051e208
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 0x51e16e
mov eax, dword [ebp - 0x10]
mov edx, 0x51e200
call fcn.00405680
jne 0x51e16e
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x1c]
xor edx, edx
call fcn.00405d3c
jne 0x51e16e
lea ecx, [ebp - 0x74]
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.0051e208
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 0x51e09a
push ebp
call fcn.0051dcf8
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51e1c1
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