Function at 0x46209c
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], 0x8565f8
push 1
push dword [ebp - 0x18]
push dword [ebp - 0xc]
call fcn.0045aa54
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 0x760e4c
push dword [ebp - 0x1c]
call fcn.0066cf64
add esp, 0xc
test eax, eax
jne 0x462390
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.00439450
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.0066c62c
pop ecx
mov dword [ebp - 0x28], eax
push dword [ebp - 0x4c]
call fcn.0066c62c
pop ecx
mov dword [ebp - 0x2c], eax
push dword [ebp - 0x54]
call fcn.0066c62c
pop ecx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x462390
mov edx, dword [ebp - 0x2c]
test edx, edx
je 0x462390
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x462390
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.00461fa4
add esp, 0x14
mov ecx, dword [ebp - 0x54]
cmp eax, ecx
jne 0x462375
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 0x46235e
push dword [ebp - 0x3c]
call fcn.00439450
pop ecx
mov dword [ebp - 0x58], eax
add dword [ebp - 0x3c], 4
push dword [ebp - 0x3c]
call fcn.00439450
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 0x46223d
push dword [ebp - 0x4c]
push 0
push dword [ebp - 0x2c]
call fcn.0066cc88
add esp, 0xc
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x64], edx
jmp 0x46229a
mov ecx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x50]
cmp ecx, eax
ja 0x462375
push dword [ebp + 0xc]
push dword [ebp - 0x60]
push 1
push dword [ebp - 0x58]
push dword [ebp - 0x28]
call fcn.00461fa4
add esp, 0x14
mov edx, dword [ebp - 0x60]
cmp eax, edx
jne 0x462375
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.00540164
add esp, 0x10
test eax, eax
jne 0x462375
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x4c]
cmp eax, edx
jbe 0x4622b2
mov ecx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x4c]
cmp ecx, eax
jne 0x462375
mov edx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x4c]
cmp edx, ecx
ja 0x4622ca
mov eax, dword [ebp - 0x64]
mov edx, dword [ebp - 0x44]
cmp eax, edx
jb 0x462375
mov ecx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x44]
cmp ecx, eax
jbe 0x4622da
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.0045dd24
add esp, 0x10
mov eax, dword [ebp - 0x24]
cdq
add eax, dword [0x833f58]
adc edx, dword [0x833f5c]
mov dword [ebp - 0x70], eax
sub edx, 0x80000000
mov dword [ebp - 0x6c], edx
fild qword [ebp - 0x70]
fadd qword [0x4624fc]
mov eax, dword [0x833f50]
mov edx, dword [0x833f54]
mov dword [ebp - 0x78], eax
sub edx, 0x80000000
mov dword [ebp - 0x74], edx
fild qword [ebp - 0x78]
fadd qword [0x4624fc]
fdivp st(1)
add esp, 0xfffffff8
fstp qword [esp]
call fcn.00441458
add esp, 8
mov ecx, dword [0x6fb15c]
test ecx, ecx
jne 0x462375
mov eax, dword [ebp - 0x64]
sub dword [ebp - 0x44], eax
mov edx, dword [ebp - 0x44]
test edx, edx
jne 0x4621f7
mov dword [ebp - 0x20], 1
mov eax, dword [ebp - 0x24]
cdq
add dword [0x833f58], eax
adc dword [0x833f5c], edx
push dword [ebp - 0x38]
call fcn.0066c63c
pop ecx
push dword [ebp - 0x2c]
call fcn.0066c63c
pop ecx
push dword [ebp - 0x28]
call fcn.0066c63c
pop ecx
mov ecx, dword [ebp - 0x20]
test ecx, ecx
jne 0x4624f2
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 [0x760dc8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
imul ecx, dword [0x760dc8]
mov dword [ebp - 8], ecx
push 0
push 0
push 0
push dword [ebp + 8]
call fcn.0045dbe8
add esp, 0x10
jmp 0x4624d2
mov eax, dword [ebp - 8]
xor edx, edx
cmp edx, dword [ebp - 0x10]
jne 0x4623ff
cmp eax, dword [ebp - 0x14]
jbe 0x46241e
jmp 0x462401
jle 0x46241e
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov edx, dword [0x760dc8]
add eax, edx
dec eax
xor edx, edx
div dword [0x760dc8]
mov dword [ebp - 4], eax
push dword [ebp - 4]
push dword [ebp - 0x18]
push dword [ebp - 0xc]
call fcn.0045aa54
add esp, 0xc
push dword [ebp + 8]
push 1
push dword [ebp - 8]
push dword [ebp - 0x18]
call fcn.0045dd24
add esp, 0x10
mov eax, dword [ebp - 8]
xor edx, edx
add dword [0x833f58], eax
adc dword [0x833f5c], edx
mov eax, dword [0x833f58]
mov edx, dword [0x833f5c]
mov dword [ebp - 0x80], eax
sub edx, 0x80000000
mov dword [ebp - 0x7c], edx
fild qword [ebp - 0x80]
fadd qword [0x4624fc]
mov eax, dword [0x833f50]
mov edx, dword [0x833f54]
mov dword [ebp - 0x88], eax
sub edx, 0x80000000
mov dword [ebp - 0x84], edx
fild qword [ebp - 0x88]
fadd qword [0x4624fc]
fdivp st(1)
add esp, 0xfffffff8
fstp qword [esp]
call fcn.00441458
add esp, 8
mov ecx, dword [0x6fb15c]
test ecx, ecx
je 0x4624bc
xor eax, eax
jmp 0x4624f7
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 0x4624e4
cmp dword [ebp - 0x14], 0
ja 0x4623ee
jmp 0x4624ea
jg 0x4623ee
push dword [ebp + 8]
call sub.KERNEL32.DLL_SetEndOfFile
mov eax, 1
mov esp, ebp
pop ebp
ret