Function at 0x522c50
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff0c
push ebx
push esi
push edi
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
cmp byte [eax + 0x94], 0
je 0x522ccf
mov eax, dword [ebp - 0x24]
fld xword [eax + 0x18]
mov eax, dword [ebp - 0x28]
fld xword [eax]
fcompp
fnstsw ax
sahf
jne 0x522ccf
mov eax, dword [ebp - 0x24]
fld xword [eax + 0x22]
mov eax, dword [ebp - 0x28]
fld xword [eax + 0xa]
fcompp
fnstsw ax
sahf
jne 0x522ccf
mov eax, dword [ebp - 0x24]
fld xword [eax + 0x30]
fld xword [ebp + 8]
fcompp
fnstsw ax
sahf
jne 0x522ccf
mov eax, dword [ebp - 0x24]
fld xword [eax + 0x40]
mov eax, dword [ebp - 0x2c]
fld xword [eax]
fcompp
fnstsw ax
sahf
jne 0x522ccf
mov eax, dword [ebp - 0x24]
fld xword [eax + 0x4a]
mov eax, dword [ebp - 0x2c]
fld xword [eax + 0xa]
fcompp
fnstsw ax
sahf
je 0x523a6b
mov eax, dword [ebp - 0x24]
call fcn.00520478
xor edx, edx
push ebp
push 0x523a61
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov esi, eax
lea edi, [edx + 0x18]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp + 8]
mov dword [eax + 0x30], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 0x34], edx
mov dx, word [ebp + 0x10]
mov word [eax + 0x38], dx
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x24]
mov esi, eax
lea edi, [edx + 0x40]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x24]
mov byte [eax + 0x94], 0
mov byte [ebp - 0x8a], 1
mov eax, dword [0x5a7a70]
mov esi, eax
lea edi, [ebp - 0xd8]
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
xor eax, eax
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x2c]
fld xword [eax]
fcomp dword [0x523a74]
fnstsw ax
sahf
jne 0x522d72
mov eax, dword [ebp - 0x2c]
fld xword [eax + 0xa]
fcomp dword [0x523a74]
fnstsw ax
sahf
jne 0x522d72
xor eax, eax
jmp 0x522d74
mov al, 1
mov byte [ebp - 0x89], al
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 8]
push eax
mov eax, dword [ebp - 0x24]
add eax, 0xc
mov ecx, 1
mov edx, dword [0x52017c]
call fcn.00405860
add esp, 4
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x523875
inc eax
mov dword [ebp - 0x9c], eax
xor esi, esi
mov eax, esi
shl eax, 3
sub eax, esi
mov edx, dword [ebp - 0x24]
mov edx, dword [edx + 0xc]
lea ebx, [edx + eax*8]
lea edi, [esi + esi*8]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 4]
mov al, byte [eax + edi*8 + 8]
mov byte [ebx + 8], al
mov eax, ebx
mov edx, dword [0x530a0c]
call fcn.00405960
lea eax, [ebx + 4]
call fcn.00403d98
mov al, byte [ebx + 8]
sub al, 0xa
je 0x522df6
sub al, 2
jne 0x522ea1
mov eax, dword [ebp - 0x2c]
fld xword [eax]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 4]
fld xword [eax + edi*8 + 0x24]
fmulp st(1)
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.00534984
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 0x2c]
fld xword [eax + 0xa]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 4]
fld xword [eax + edi*8 + 0x2e]
fmulp st(1)
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.00534984
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 4]
fld xword [eax + edi*8 + 0x38]
fld xword [ebp + 8]
faddp st(1)
fstp xword [ebp - 0x78]
wait
mov eax, dword [ebx + 0x14]
cmp eax, dword [ebx + 0x18]
je 0x522ea1
fld xword [ebp - 0x78]
call fcn.00402b78
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0xdc], edx
fild qword [ebp - 0xe0]
fld xword [ebp - 0x78]
fcompp
fnstsw ax
sahf
jne 0x522e91
push 0
push 0x5a
fld xword [ebp - 0x78]
call fcn.00402b78
call fcn.00406ca1
cmp edx, 0
jne 0x522e8f
cmp eax, 0
je 0x522ea1
cmp byte [ebx + 8], 0xc
jne 0x522e9d
mov byte [ebx + 8], 2
jmp 0x522ea1
mov byte [ebx + 8], 3
xor eax, eax
mov al, byte [ebx + 8]
cmp eax, 0x16
ja case.0x522eb5.0
mov al, byte [eax + 0x522ebc]
jmp dword [eax*4 + 0x522ed3]
lea eax, [esi + esi*8]
mov edx, dword [ebp - 0x24]
mov edx, dword [edx + 4]
mov eax, dword [edx + eax*8]
call fcn.004056a4
push eax
mov eax, ebx
mov ecx, 1
mov edx, dword [0x530a0c]
call fcn.00405860
add esp, 4
xor eax, eax
mov dword [ebp - 0x38], eax
mov eax, dword [ebx]
call fcn.004056ac
test eax, eax
jl 0x5230f5
inc eax
mov dword [ebp - 0xa0], eax
xor edi, edi
lea eax, [esi + esi*8]
mov edx, dword [ebp - 0x24]
mov edx, dword [edx + 4]
mov eax, dword [edx + eax*8]
lea edx, [edi + edi*2]
lea eax, [eax + edx*8]
mov edx, dword [eax]
mov dword [ebp - 0x58], edx
mov edx, dword [eax + 4]
mov dword [ebp - 0x54], edx
mov dx, word [eax + 8]
mov word [ebp - 0x50], dx
mov edx, dword [eax + 0xa]
mov dword [ebp - 0x68], edx
mov edx, dword [eax + 0xe]
mov dword [ebp - 0x64], edx
mov dx, word [eax + 0x12]
mov word [ebp - 0x60], dx
cmp byte [ebp - 0x89], 0
je 0x522f9e
mov eax, dword [ebp - 0x2c]
fld xword [eax]
fld xword [ebp - 0x58]
fmulp st(1)
fstp xword [ebp - 0x58]
wait
mov eax, dword [ebp - 0x2c]
fld xword [eax + 0xa]
fld xword [ebp - 0x68]
fmulp st(1)
fstp xword [ebp - 0x68]
wait
fld xword [ebp + 8]
fcomp dword [0x523a78]
fnstsw ax
sahf
je 0x522fcf
push ebp
mov ax, word [ebp - 0x50]
push eax
push dword [ebp - 0x54]
push dword [ebp - 0x58]
mov ax, word [ebp - 0x60]
push eax
push dword [ebp - 0x64]
push dword [ebp - 0x68]
lea edx, [ebp - 0x68]
lea eax, [ebp - 0x58]
call fcn.00522a90
pop ecx
mov eax, dword [ebp - 0x28]
fld xword [eax]
fld xword [ebp - 0x58]
faddp st(1)
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.00534984
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x28]
fld xword [eax + 0xa]
fld xword [ebp - 0x68]
faddp st(1)
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.00534984
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x38], 0
je 0x523028
mov eax, dword [ebx]
mov edx, dword [ebp - 0x38]
mov eax, dword [eax + edx*8 - 8]
cmp eax, dword [ebp - 0x3c]
jne 0x523028
mov eax, dword [ebx]
mov edx, dword [ebp - 0x38]
mov eax, dword [eax + edx*8 - 4]
cmp eax, dword [ebp - 0x40]
je 0x5230e8
mov eax, dword [ebx]
mov edx, dword [ebp - 0x38]
lea eax, [eax + edx*8]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xa4]
mov edx, dword [ebp - 0x3c]
mov dword [eax], edx
mov eax, dword [ebp - 0xa4]
mov edx, dword [ebp - 0x40]
mov dword [eax + 4], edx
inc dword [ebp - 0x38]
cmp byte [ebp - 0x8a], 0
je 0x52308c
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x34]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x3c]
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x34]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x40]
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x88], eax
mov byte [ebp - 0x8a], 0
jmp 0x5230e8
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x7c]
jge 0x5230a0
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x34]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x3c]
add eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x80]
jle 0x5230b4
mov eax, dword [ebp - 0x3c]
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x84]
jge 0x5230ce
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x34]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x40]
add eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x88]
jle 0x5230e8
mov eax, dword [ebp - 0x40]
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x88], eax
inc edi
dec dword [ebp - 0xa0]
jne 0x522f3f
mov eax, dword [ebp - 0x38]
push eax
mov eax, ebx
mov ecx, 1
mov edx, dword [0x530a0c]
call fcn.00405860
add esp, 4
jmp case.0x522eb5.0
mov eax, dword [ebx + 0x18]
cmp eax, dword [ebx + 0x14]
je 0x52314b
push 0
push 2
push 0
push 0x5a
fld xword [ebp - 0x78]
call fcn.00402b78
call fcn.00406bae
call fcn.00406ca1
cmp edx, 0
jne 0x52313d
cmp eax, 0
je 0x52314b
mov edi, dword [ebx + 0x14]
mov eax, dword [ebx + 0x18]
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], edi
lea eax, [esi + esi*8]
mov edx, dword [ebp - 0x24]
mov edx, dword [edx + 4]
lea eax, [edx + eax*8]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xa8]
mov edx, dword [eax + 0x10]
mov dword [ebp - 0x58], edx
mov edx, dword [eax + 0x14]
mov dword [ebp - 0x54], edx
mov dx, word [eax + 0x18]
mov word [ebp - 0x50], dx
mov eax, dword [ebp - 0xa8]
mov edx, dword [eax + 0x1a]
mov dword [ebp - 0x68], edx
mov edx, dword [eax + 0x1e]
mov dword [ebp - 0x64], edx
mov dx, word [eax + 0x22]
mov word [ebp - 0x60], dx
cmp byte [ebp - 0x89], 0
je 0x5231b7
mov eax, dword [ebp - 0x2c]
fld xword [eax]
fld xword [ebp - 0x58]
fmulp st(1)
fstp xword [ebp - 0x58]
wait
mov eax, dword [ebp - 0x2c]
fld xword [eax + 0xa]
fld xword [ebp - 0x68]
fmulp st(1)
fstp xword [ebp - 0x68]
wait
fld xword [ebp + 8]
fcomp dword [0x523a78]
fnstsw ax
sahf
je 0x5231e8
push ebp
mov ax, word [ebp - 0x50]
push eax
push dword [ebp - 0x54]
push dword [ebp - 0x58]
mov ax, word [ebp - 0x60]
push eax
push dword [ebp - 0x64]
push dword [ebp - 0x68]
lea edx, [ebp - 0x68]
lea eax, [ebp - 0x58]
call fcn.00522a90
pop ecx
mov eax, dword [ebp - 0x28]
fld xword [eax]
fld xword [ebp - 0x58]
faddp st(1)
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.00534984
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x28]
fld xword [eax + 0xa]
fld xword [ebp - 0x68]
faddp st(1)
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.00534984
mov dword [ebx + 0x10], eax
cmp byte [ebp - 0x8a], 0
je 0x523266
mov eax, dword [ebx + 0xc]
sub eax, dword [ebx + 0x14]
sub eax, dword [ebp - 0x34]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebx + 0xc]
add eax, dword [ebx + 0x14]
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x80], eax
mov eax, dword [ebx + 0x10]
sub eax, dword [ebx + 0x18]
sub eax, dword [ebp - 0x34]
mov dword [ebp - 0x84], eax
mov eax, dword [ebx + 0x10]
add eax, dword [ebx + 0x18]
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x88], eax
mov byte [ebp - 0x8a], 0
jmp case.0x522eb5.0
mov eax, dword [ebx + 0xc]
sub eax, dword [ebx + 0x14]
sub eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x7c]
jge 0x523280
mov eax, dword [ebx + 0xc]
sub eax, dword [ebx + 0x14]
sub eax, dword [ebp - 0x34]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebx + 0xc]
add eax, dword [ebx + 0x14]
add eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x80]
jle 0x52329a
mov eax, dword [ebx + 0xc]
add eax, dword [ebx + 0x14]
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x80], eax
mov eax, dword [ebx + 0x10]
sub eax, dword [ebx + 0x18]
sub eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x84]
jge 0x5232ba
mov eax, dword [ebx + 0x10]
sub eax, dword [ebx + 0x18]
sub eax, dword [ebp - 0x34]
mov dword [ebp - 0x84], eax
mov eax, dword [ebx + 0x10]
add eax, dword [ebx + 0x18]
add eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x88]
jle case.0x522eb5.0
mov eax, dword [ebx + 0x10]
add eax, dword [ebx + 0x18]
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x88], eax
jmp case.0x522eb5.0
lea eax, [esi + esi*8]
mov edx, dword [ebp - 0x24]
mov edx, dword [edx + 4]
mov eax, dword [edx + eax*8 + 0xc]
mov dword [ebx + 0xc], eax
jmp case.0x522eb5.0
lea eax, [esi + esi*8]
mov edx, dword [ebp - 0x24]
mov edx, dword [edx + 4]
mov eax, dword [edx + eax*8 + 0xc]
mov dword [ebx + 0xc], eax
lea eax, [esi + esi*8]
mov edx, dword [ebp - 0x24]
mov edx, dword [edx + 4]
mov al, byte [edx + eax*8 + 0x10]
mov byte [ebx + 0x10], al
jmp case.0x522eb5.0
lea eax, [esi + esi*8]
mov edx, dword [ebp - 0x24]
mov edx, dword [edx + 4]
mov eax, dword [edx + eax*8 + 0xc]
mov dword [ebx + 0xc], eax
cmp byte [ebp - 0x89], 0
je 0x52337d
mov eax, dword [ebp - 0x2c]
fld xword [eax]
mov eax, dword [ebp - 0x2c]
fld xword [eax + 0xa]
fcompp
fnstsw ax
sahf
jbe 0x523363
fild dword [ebx + 0xc]
mov eax, dword [ebp - 0x2c]
fld xword [eax]
fmulp st(1)
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.00534984
mov dword [ebx + 0xc], eax
jmp 0x52337d
fild dword [ebx + 0xc]
mov eax, dword [ebp - 0x2c]
fld xword [eax + 0xa]
fmulp st(1)
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.00534984
mov dword [ebx + 0xc], eax
cmp dword [ebx + 0xc], 1
jge 0x52338a
mov dword [ebx + 0xc], 1
mov eax, dword [ebx + 0xc]
sar eax, 1
jns 0x523394
adc eax, 0
inc eax
mov dword [ebp - 0x34], eax
jmp case.0x522eb5.0
lea eax, [esi + esi*8]
mov edx, dword [ebp - 0x24]
mov edx, dword [edx + 4]
mov al, byte [edx + eax*8 + 9]
mov byte [ebx + 9], al
jmp case.0x522eb5.0
lea eax, [esi + esi*8]
mov edx, dword [ebp - 0x24]
mov edx, dword [edx + 4]
lea eax, [edx + eax*8]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xac]
mov edx, dword [eax + 0x10]
mov dword [ebp - 0x58], edx
mov edx, dword [eax + 0x14]
mov dword [ebp - 0x54], edx
mov dx, word [eax + 0x18]
mov word [ebp - 0x50], dx
mov eax, dword [ebp - 0xac]
mov edx, dword [eax + 0x1a]
mov dword [ebp - 0x68], edx
mov edx, dword [eax + 0x1e]
mov dword [ebp - 0x64], edx
mov dx, word [eax + 0x22]
mov word [ebp - 0x60], dx
cmp byte [ebp - 0x89], 0
je 0x52341e
mov eax, dword [ebp - 0x2c]
fld xword [eax]
fld xword [ebp - 0x58]
fmulp st(1)
fstp xword [ebp - 0x58]
wait
mov eax, dword [ebp - 0x2c]
fld xword [eax + 0xa]
fld xword [ebp - 0x68]
fmulp st(1)
fstp xword [ebp - 0x68]
wait
fld xword [ebp + 8]
fcomp dword [0x523a78]
fnstsw ax
sahf
je 0x52344f
push ebp
mov ax, word [ebp - 0x50]
push eax
push dword [ebp - 0x54]
push dword [ebp - 0x58]
mov ax, word [ebp - 0x60]
push eax
push dword [ebp - 0x64]
push dword [ebp - 0x68]
lea edx, [ebp - 0x68]
lea eax, [ebp - 0x58]
call fcn.00522a90
pop ecx
mov eax, dword [ebp - 0x28]
fld xword [eax]
fld xword [ebp - 0x58]
faddp st(1)
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.00534984
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x28]
fld xword [eax + 0xa]
fld xword [ebp - 0x68]
faddp st(1)
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.00534984
mov dword [ebx + 0x10], eax
lea eax, [esi + esi*8]
mov edx, dword [ebp - 0x24]
mov edx, dword [edx + 4]
fld xword [edx + eax*8 + 0x24]
mov eax, dword [ebp - 0x2c]
fld xword [eax]
fmulp st(1)
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.00534984
mov dword [ebx + 0x14], eax
mov eax, dword [ebx + 0x14]
inc eax
sar eax, 1
jns 0x5234b0
adc eax, 0
mov dword [ebp - 0x30], eax
cmp byte [ebp - 0x8a], 0
je 0x5234f2
mov eax, dword [ebx + 0xc]
sub eax, dword [ebp - 0x30]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebx + 0xc]
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x80], eax
mov eax, dword [ebx + 0x10]
sub eax, dword [ebp - 0x30]
mov dword [ebp - 0x84], eax
mov eax, dword [ebx + 0x10]
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x88], eax
mov byte [ebp - 0x8a], 0
jmp case.0x522eb5.0
mov eax, dword [ebx + 0xc]
sub eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x7c]
jge 0x523506
mov eax, dword [ebx + 0xc]
sub eax, dword [ebp - 0x30]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebx + 0xc]
add eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x80]
jle 0x52351a
mov eax, dword [ebx + 0xc]
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x80], eax
mov eax, dword [ebx + 0x10]
sub eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x84]
jge 0x523534
mov eax, dword [ebx + 0x10]
sub eax, dword [ebp - 0x30]
mov dword [ebp - 0x84], eax
mov eax, dword [ebx + 0x10]
add eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x88]
jle case.0x522eb5.0
mov eax, dword [ebx + 0x10]
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x88], eax
jmp case.0x522eb5.0
lea eax, [esi + esi*8]
mov edx, dword [ebp - 0x24]
mov edx, dword [edx + 4]
push esi
lea esi, [edx + eax*8 + 0xc]
lea edi, [ebx + 0xc]
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
pop esi
push esi
lea esi, [ebx + 0xc]
lea edi, [ebp - 0xd8]
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
pop esi
jmp case.0x522eb5.0
lea eax, [esi + esi*8]
mov edx, dword [ebp - 0x24]
mov edx, dword [edx + 4]
lea eax, [edx + eax*8]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xb0]
mov edx, dword [eax + 0x10]
mov dword [ebp - 0x58], edx
mov edx, dword [eax + 0x14]
mov dword [ebp - 0x54], edx
mov dx, word [eax + 0x18]
mov word [ebp - 0x50], dx
mov eax, dword [ebp - 0xb0]
mov edx, dword [eax + 0x1a]
mov dword [ebp - 0x68], edx
mov edx, dword [eax + 0x1e]
mov dword [ebp - 0x64], edx
mov dx, word [eax + 0x22]
mov word [ebp - 0x60], dx
cmp byte [ebp - 0x89], 0
je 0x5235f3
mov eax, dword [ebp - 0x2c]
fld xword [eax]
fld xword [ebp - 0x58]
fmulp st(1)
fstp xword [ebp - 0x58]
wait
mov eax, dword [ebp - 0x2c]
fld xword [eax + 0xa]
fld xword [ebp - 0x68]
fmulp st(1)
fstp xword [ebp - 0x68]
wait
fld xword [ebp + 8]
fcomp dword [0x523a78]
fnstsw ax
sahf
je 0x523624
push ebp
mov ax, word [ebp - 0x50]
push eax
push dword [ebp - 0x54]
push dword [ebp - 0x58]
mov ax, word [ebp - 0x60]
push eax
push dword [ebp - 0x64]
push dword [ebp - 0x68]
lea edx, [ebp - 0x68]
lea eax, [ebp - 0x58]
call fcn.00522a90
pop ecx
mov eax, dword [ebp - 0x28]
fld xword [eax]
fld xword [ebp - 0x58]
faddp st(1)
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.00534984
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x28]
fld xword [eax + 0xa]
fld xword [ebp - 0x68]
faddp st(1)
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.00534984
mov dword [ebx + 0x10], eax
lea eax, [esi + esi*8]
mov edx, dword [ebp - 0x24]
mov edx, dword [edx + 4]
fld xword [edx + eax*8 + 0x24]
fld xword [ebp + 8]
faddp st(1)
fmul dword [0x523a7c]
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.00534984
mov dword [ebp - 0xe4], eax
fild dword [ebp - 0xe4]
fld dword [0x523a7c]
call fcn.004064ae
fstp xword [ebx + 0x18]
wait
lea eax, [ebx + 4]
lea edx, [esi + esi*8]
mov ecx, dword [ebp - 0x24]
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + edx*8 + 4]
call fcn.00403dec
cmp dword [ebp - 0x98], 0
jne 0x5236e6
mov dl, 1
mov eax, dword [0x5308ec]
call fcn.005348ec
mov dword [ebp - 0x98], eax
mov edx, 0x64
mov eax, dword [ebp - 0x98]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov edx, 0x64
mov eax, dword [ebp - 0x98]
mov ecx, dword [eax]
call dword [ecx + 0x34]
lea ecx, [ebp - 0x94]
mov edx, dword [ebx + 0x10]
mov eax, dword [ebx + 0xc]
call fcn.004107a8
mov eax, dword [ebx + 4]
push eax
lea eax, [ebx + 0x18]
push eax
push ebx
mov eax, dword [ebp - 0x98]
call fcn.0041f40c
lea ecx, [ebp - 0xd8]
lea edx, [ebp - 0x94]
call fcn.00532210
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0xc], eax
mov ax, word [ebx + 0x20]
mov word [ebp - 8], ax
xor edi, edi
mov eax, dword [ebx + 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebx + 0x10]
mov eax, dword [ebx + 0xc]
call fcn.004107c0
cmp byte [ebx + 8], 0x16
jmp 0x5237e1
mov eax, dword [ebx]
mov eax, dword [eax + edi*8]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebx]
mov eax, dword [eax + edi*8 + 4]
mov dword [ebp - 0x40], eax
inc edi
mov eax, dword [ebx]
mov eax, dword [eax + edi*8]
mov dword [ebp - 0x44], eax
mov eax, dword [ebx]
mov eax, dword [eax + edi*8 + 4]
mov dword [ebp - 0x48], eax
inc edi
push ebp
mov edx, dword [ebp - 0x40]
sub edx, dword [ebx + 0x10]
push edx
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebp - 0x3c]
sub ecx, eax
mov edx, dword [ebx + 0x10]
push edx
pop edx
call fcn.00522b44
pop ecx
push ebp
mov edx, dword [ebp - 0x40]
sub edx, dword [ebx + 0x10]
push edx
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebp - 0x44]
sub ecx, eax
mov edx, dword [ebx + 0x10]
push edx
pop edx
call fcn.00522b44
pop ecx
push ebp
mov edx, dword [ebp - 0x48]
sub edx, dword [ebx + 0x10]
push edx
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebp - 0x44]
sub ecx, eax
mov edx, dword [ebx + 0x10]
push edx
pop edx
call fcn.00522b44
pop ecx
push ebp
mov edx, dword [ebp - 0x48]
sub edx, dword [ebx + 0x10]
push edx
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebp - 0x3c]
sub ecx, eax
mov edx, dword [ebx + 0x10]
push edx
pop edx
call fcn.00522b44
pop ecx
mov eax, dword [ebx]
call fcn.004056ac
cmp edi, eax
jl 0x523751
cmp byte [ebp - 0x8a], 0
je 0x523820
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x88], eax
mov byte [ebp - 0x8a], 0
jmp 0x523864
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x7c]
jge 0x52382e
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x80]
jle 0x52383c
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x84]
jge 0x523850
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x88]
jle 0x523864
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x88], eax
mov byte [ebx + 8], 0x15
inc esi
dec dword [ebp - 0x9c]
jne 0x522db2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x523a6b
mov eax, dword [ebp - 0x24]
cmp dword [eax + 8], 0
sete al
mov edx, dword [ebp - 0x24]
mov byte [edx + 0x58], al
mov eax, dword [ebp - 0x24]
mov byte [eax + 0x94], 1
cmp byte [ebp - 0x8a], 0
je 0x523947
lea ecx, [ebp - 0xe0]
xor edx, edx
xor eax, eax
call fcn.004107a8
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0xe0]
mov dword [eax + 0x5c], edx
mov edx, dword [ebp - 0xdc]
mov dword [eax + 0x60], edx
lea ecx, [ebp - 0xe0]
xor edx, edx
xor eax, eax
call fcn.004107a8
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0xe0]
mov dword [eax + 0x64], edx
mov edx, dword [ebp - 0xdc]
mov dword [eax + 0x68], edx
push 0
lea eax, [ebp - 0xf4]
push eax
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.004107c0
mov eax, dword [ebp - 0x24]
lea esi, [ebp - 0xf4]
lea edi, [eax + 0x6c]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
push 0
lea eax, [ebp - 0xf4]
push eax
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.004107c0
mov eax, dword [ebp - 0x24]
lea esi, [ebp - 0xf4]
lea edi, [eax + 0x98]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
jmp 0x523a44
lea ecx, [ebp - 0xe0]
mov edx, dword [ebp - 0x88]
sub edx, dword [ebp - 0x84]
inc edx
mov eax, dword [ebp - 0x80]
sub eax, dword [ebp - 0x7c]
inc eax
call fcn.004107a8
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0xe0]
mov dword [eax + 0x5c], edx
mov edx, dword [ebp - 0xdc]
mov dword [eax + 0x60], edx
fild dword [ebp - 0x84]
mov eax, dword [ebp - 0x28]
fld xword [eax + 0xa]
fsubrp st(1)
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.00534984
push eax
fild dword [ebp - 0x7c]
mov eax, dword [ebp - 0x28]
fld xword [eax]
fsubrp st(1)
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.00534984
lea ecx, [ebp - 0xe0]
pop edx
call fcn.004107a8
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0xe0]
mov dword [eax + 0x64], edx
mov edx, dword [ebp - 0xdc]
mov dword [eax + 0x68], edx
mov eax, dword [ebp - 0x88]
inc eax
add eax, 4
push eax
lea eax, [ebp - 0xf4]
push eax
mov ecx, dword [ebp - 0x80]
inc ecx
add ecx, 4
mov edx, dword [ebp - 0x84]
sub edx, 4
mov eax, dword [ebp - 0x7c]
sub eax, 4
call fcn.004107c0
mov eax, dword [ebp - 0x24]
lea esi, [ebp - 0xf4]
lea edi, [eax + 0x6c]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x88]
inc eax
push eax
lea eax, [ebp - 0xf4]
push eax
mov ecx, dword [ebp - 0x80]
inc ecx
mov edx, dword [ebp - 0x84]
mov eax, dword [ebp - 0x7c]
call fcn.004107c0
mov eax, dword [ebp - 0x24]
lea esi, [ebp - 0xf4]
lea edi, [eax + 0x98]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp - 0x98], 0
je 0x523a58
mov eax, dword [ebp - 0x98]
call fcn.0040308c
mov eax, dword [ebp - 0x24]
call fcn.00520484
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc