Function at 0x461db4
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff78
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0x10c]
mov dword [ebp - 0xc], edx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x118]
mov dword [ebp - 0x14], eax
mov eax, dword [ecx + 0x11c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], 0x848c24
push 1
push dword [ebp - 0x18]
push dword [ebp - 0xc]
call fcn.0045a76c
add esp, 0xc
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
xor ecx, ecx
mov dword [ebp - 0x20], ecx
xor eax, eax
mov dword [ebp - 0x24], eax
push 8
push 0x757d40
push dword [ebp - 0x1c]
call fcn.0066cb48
add esp, 0xc
test eax, eax
jne 0x4620a8
xor edx, edx
mov dword [ebp - 0x28], edx
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x1c]
add eax, 8
push eax
call fcn.004392d8
pop ecx
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 0x1c]
xor ecx, ecx
mov cl, byte [edx + 0xc]
shl ecx, 2
mov dword [ebp - 0x48], ecx
mov eax, dword [ebp - 0x1c]
xor edx, edx
mov dl, byte [eax + 0xd]
mov dword [ebp - 0x34], edx
mov ecx, dword [ebp - 0x34]
mov eax, 1
shl eax, cl
mov dword [ebp - 0x4c], eax
mov edx, dword [ebp - 0x4c]
add edx, edx
mov dword [ebp - 0x50], edx
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x4c]
add eax, edx
dec eax
shr eax, cl
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
inc ecx
shl ecx, 2
mov dword [ebp - 0x54], ecx
push dword [ebp - 0x50]
call fcn.0066c210
pop ecx
mov dword [ebp - 0x28], eax
push dword [ebp - 0x4c]
call fcn.0066c210
pop ecx
mov dword [ebp - 0x2c], eax
push dword [ebp - 0x54]
call fcn.0066c210
pop ecx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4620a8
mov edx, dword [ebp - 0x2c]
test edx, edx
je 0x4620a8
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x4620a8
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x48]
add eax, edx
mov dword [ebp - 0x24], eax
push dword [ebp + 0xc]
push dword [ebp - 0x54]
push 1
push dword [ebp - 0x48]
push dword [ebp - 0x38]
call fcn.00461cbc
add esp, 0x14
mov ecx, dword [ebp - 0x54]
cmp eax, ecx
jne 0x46208d
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x54]
add eax, edx
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x462076
push dword [ebp - 0x3c]
call fcn.004392d8
pop ecx
mov dword [ebp - 0x58], eax
add dword [ebp - 0x3c], 4
push dword [ebp - 0x3c]
call fcn.004392d8
pop ecx
mov dword [ebp - 0x5c], eax
mov edx, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x58]
sub edx, ecx
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x60]
test eax, eax
jne 0x461f55
push dword [ebp - 0x4c]
push 0
push dword [ebp - 0x2c]
call fcn.0066c86c
add esp, 0xc
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x64], edx
jmp 0x461fb2
mov ecx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x50]
cmp ecx, eax
ja 0x46208d
push dword [ebp + 0xc]
push dword [ebp - 0x60]
push 1
push dword [ebp - 0x58]
push dword [ebp - 0x28]
call fcn.00461cbc
add esp, 0x14
mov edx, dword [ebp - 0x60]
cmp eax, edx
jne 0x46208d
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x60]
add ecx, eax
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x64], edx
push dword [ebp - 0x60]
push dword [ebp - 0x28]
lea ecx, [ebp - 0x64]
push ecx
push dword [ebp - 0x2c]
call fcn.0053fd48
add esp, 0x10
test eax, eax
jne 0x46208d
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x4c]
cmp eax, edx
jbe 0x461fca
mov ecx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x4c]
cmp ecx, eax
jne 0x46208d
mov edx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x4c]
cmp edx, ecx
ja 0x461fe2
mov eax, dword [ebp - 0x64]
mov edx, dword [ebp - 0x44]
cmp eax, edx
jb 0x46208d
mov ecx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x44]
cmp ecx, eax
jbe 0x461ff2
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x64], edx
push dword [ebp + 8]
push dword [ebp - 0x64]
push 1
push dword [ebp - 0x2c]
call fcn.0045da3c
add esp, 0x10
mov eax, dword [ebp - 0x24]
cdq
add eax, dword [0x826584]
adc edx, dword [0x826588]
mov dword [ebp - 0x70], eax
sub edx, 0x80000000
mov dword [ebp - 0x6c], edx
fild qword [ebp - 0x70]
fadd qword [0x462214]
mov eax, dword [0x82657c]
mov edx, dword [0x826580]
mov dword [ebp - 0x78], eax
sub edx, 0x80000000
mov dword [ebp - 0x74], edx
fild qword [ebp - 0x78]
fadd qword [0x462214]
fdivp st(1)
add esp, 0xfffffff8
fstp qword [esp]
call fcn.004412e0
add esp, 8
mov ecx, dword [0x6f6920]
test ecx, ecx
jne 0x46208d
mov eax, dword [ebp - 0x64]
sub dword [ebp - 0x44], eax
mov edx, dword [ebp - 0x44]
test edx, edx
jne 0x461f0f
mov dword [ebp - 0x20], 1
mov eax, dword [ebp - 0x24]
cdq
add dword [0x826584], eax
adc dword [0x826588], edx
push dword [ebp - 0x38]
call fcn.0066c220
pop ecx
push dword [ebp - 0x2c]
call fcn.0066c220
pop ecx
push dword [ebp - 0x28]
call fcn.0066c220
pop ecx
mov ecx, dword [ebp - 0x20]
test ecx, ecx
jne 0x46220a
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0x10c]
mov dword [ebp - 0xc], edx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x118]
mov dword [ebp - 0x14], eax
mov eax, dword [ecx + 0x11c]
mov dword [ebp - 0x10], eax
mov eax, 0x12000
cdq
idiv dword [0x757cbc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
imul ecx, dword [0x757cbc]
mov dword [ebp - 8], ecx
push 0
push 0
push 0
push dword [ebp + 8]
call fcn.0045d900
add esp, 0x10
jmp 0x4621ea
mov eax, dword [ebp - 8]
xor edx, edx
cmp edx, dword [ebp - 0x10]
jne 0x462117
cmp eax, dword [ebp - 0x14]
jbe 0x462136
jmp 0x462119
jle 0x462136
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov edx, dword [0x757cbc]
add eax, edx
dec eax
xor edx, edx
div dword [0x757cbc]
mov dword [ebp - 4], eax
push dword [ebp - 4]
push dword [ebp - 0x18]
push dword [ebp - 0xc]
call fcn.0045a76c
add esp, 0xc
push dword [ebp + 8]
push 1
push dword [ebp - 8]
push dword [ebp - 0x18]
call fcn.0045da3c
add esp, 0x10
mov eax, dword [ebp - 8]
xor edx, edx
add dword [0x826584], eax
adc dword [0x826588], edx
mov eax, dword [0x826584]
mov edx, dword [0x826588]
mov dword [ebp - 0x80], eax
sub edx, 0x80000000
mov dword [ebp - 0x7c], edx
fild qword [ebp - 0x80]
fadd qword [0x462214]
mov eax, dword [0x82657c]
mov edx, dword [0x826580]
mov dword [ebp - 0x88], eax
sub edx, 0x80000000
mov dword [ebp - 0x84], edx
fild qword [ebp - 0x88]
fadd qword [0x462214]
fdivp st(1)
add esp, 0xfffffff8
fstp qword [esp]
call fcn.004412e0
add esp, 8
mov ecx, dword [0x6f6920]
test ecx, ecx
je 0x4621d4
xor eax, eax
jmp 0x46220f
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
add edx, ecx
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 8]
xor edx, edx
sub dword [ebp - 0x14], eax
sbb dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jne 0x4621fc
cmp dword [ebp - 0x14], 0
ja 0x462106
jmp 0x462202
jg 0x462106
push dword [ebp + 8]
call sub.KERNEL32.DLL_SetEndOfFile
mov eax, 1
mov esp, ebp
pop ebp
ret