Function at 0x59c4a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
xor ebx, ebx
sub esp, 0x9c
mov edx, dword [esp + 0xbc]
mov esi, dword [edx]
mov eax, esi
and eax, 0xffffffcf
mov dword [edx], eax
mov eax, esi
and eax, 7
cmp eax, 4
ja case.default.0x59c4ca
jmp dword [eax*4 + 0x6aaf90]
fld st(0)
fadd st(1)
fadd dword [0x6aafdc]
fstp qword [esp + 0x68]
sub dword [esp + 0x6c], 0x3400000
fld st(0)
fsub dword [0x6aafe0]
fld qword [esp + 0x68]
fxch st(1)
fucom st(1)
fnstsw ax
sahf
ja 0x59d432
fxch st(1)
fchs
fucompp
fnstsw ax
sahf
ja 0x59cead
jmp 0x59c521
fstp st(0)
fstp st(0)
jmp 0x59c521
fstp st(0)
fstp st(0)
fstp st(0)
jmp 0x59c521
fstp st(0)
fstp qword [esp + 0x38]
cmp dword [esp + 0x20], 0xe
jg 0x59cbd0
mov eax, dword [esp + 0x50]
test eax, eax
js 0x59cbd0
mov esi, dword [esp + 0x48]
mov edx, dword [esp + 0x20]
test esi, esi
fld qword [edx*8 + 0x6ab000]
jg 0x59cf43
mov eax, dword [esp + 0xc4]
shr eax, 0x1f
test al, al
je 0x59cf43
mov ecx, dword [esp + 0x48]
test ecx, ecx
jne 0x59ceb1
fmul dword [0x6aafe0]
fld qword [esp + 0x38]
fxch st(1)
fucompp
fnstsw ax
sahf
jae 0x59ceb3
add edx, 2
xor edi, edi
mov dword [esp + 0x28], edx
mov dword [esp + 0x38], 0
mov byte [ebx], 0x31
lea esi, [ebx + 1]
mov dword [esp + 0x40], 0
mov dword [esp + 0x24], 0x20
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call fcn.0059df30
test edi, edi
je 0x59c5d1
cmp dword [esp + 0x40], edi
jne 0x59d1ed
mov dword [esp], edi
call fcn.0059df30
mov dword [esp], ebp
call fcn.0059df30
mov eax, dword [esp + 0xcc]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0xc8]
mov byte [esi], 0
test eax, eax
mov dword [edx], ecx
je 0x59c5fd
mov eax, dword [esp + 0xcc]
mov dword [eax], esi
mov edx, dword [esp + 0xbc]
mov ecx, dword [esp + 0x24]
or dword [edx], ecx
lea esi, [esi]
add esp, 0x9c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0xb0]
xor edx, edx
mov edi, dword [eax]
cmp edi, 0x20
jle 0x59c63e
mov eax, 0x20
add eax, eax
add edx, 1
cmp edi, eax
jg 0x59c635
mov dword [esp], edx
call fcn.0059de70
mov edx, dword [esp + 0xb8]
mov ebp, eax
lea eax, [edi - 1]
sar eax, 5
lea ebx, [edx + eax*4]
mov eax, dword [esp + 0xb8]
lea edx, [ebp + 0x14]
mov ecx, edx
mov dword [esp + 0x20], edx
mov edx, dword [eax]
add eax, 4
mov dword [ecx], edx
add ecx, 4
cmp ebx, eax
jae 0x59c668
mov edx, dword [esp + 0x20]
sub ecx, edx
sar ecx, 2
nop
lea eax, [ecx - 1]
mov edx, dword [ebp + eax*4 + 0x14]
test edx, edx
jne 0x59cb50
test eax, eax
mov ecx, eax
jne 0x59c680
mov dword [ebp + 0x10], 0
mov dword [esp + 0x40], 0
mov dword [esp], ebp
call fcn.0059ec50
mov ecx, dword [esp + 0xb4]
mov dword [esp + 0x50], ecx
test eax, eax
mov dword [esp + 0x8c], eax
jne 0x59cb21
mov ebx, dword [ebp + 0x10]
test ebx, ebx
jne 0x59c790
mov dword [esp], ebp
call fcn.0059df30
mov ecx, dword [esp + 0xc8]
mov eax, dword [esp + 0xcc]
mov dword [ecx], 1
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], 0x6aaf8d
call fcn.0059daa0
add esp, 0x9c
mov ebx, eax
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [esp + 0xc8]
mov ecx, dword [esp + 0xcc]
mov dword [edx], 0xffff8000
mov dword [esp + 8], 3
mov dword [esp + 4], ecx
mov dword [esp], 0x6aaf89
call fcn.0059daa0
add esp, 0x9c
mov ebx, eax
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [esp + 0xc8]
mov eax, dword [esp + 0xcc]
mov dword [ecx], 0xffff8000
mov dword [esp + 8], 8
mov dword [esp + 4], eax
mov dword [esp], str.Infinity
call fcn.0059daa0
add esp, 0x9c
mov ebx, eax
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esp + 0x8c]
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.0059e630
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x40]
lea ecx, [eax + edx - 1]
fstp qword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov edx, ecx
mov dword [esp + 0x78], ecx
sar edx, 0x1f
mov eax, edx
xor eax, ecx
and ebx, 0xfffff
sub eax, edx
or ebx, 0x3ff00000
sub eax, 0x435
mov dword [esp + 0x3c], ebx
test eax, eax
fld qword [esp + 0x38]
fsub dword [0x6aafa4]
fmul qword [0x6aafa8]
fadd qword [0x6aafb0]
fild dword [esp + 0x78]
fmul qword [0x6aafb8]
faddp st(1)
jle 0x59c811
mov dword [esp + 0x78], eax
fild dword [esp + 0x78]
fmul qword [0x6aafc0]
faddp st(1)
fnstcw word [esp + 0x7e]
movzx eax, word [esp + 0x7e]
mov ah, 0xc
mov word [esp + 0x7c], ax
fldcw word [esp + 0x7c]
fist dword [esp + 0x20]
fldcw word [esp + 0x7e]
fldz
fucomp st(1)
fnstsw ax
sahf
ja 0x59cf10
fstp st(0)
mov eax, ecx
shl eax, 0x14
add eax, ebx
cmp dword [esp + 0x20], 0x16
mov dword [esp + 0x3c], eax
mov dword [esp + 0x5c], 1
ja 0x59c87f
mov edx, dword [esp + 0x20]
fld qword [edx*8 + 0x6ab000]
fld qword [esp + 0x38]
fxch st(1)
fucompp
fnstsw ax
sahf
jbe 0x59ce40
sub dword [esp + 0x20], 1
mov dword [esp + 0x5c], 0
mov eax, dword [esp + 0x40]
mov dword [esp + 0x54], 0
sub eax, ecx
sub eax, 1
mov dword [esp + 0x4c], eax
js 0x59cee1
mov ecx, dword [esp + 0x20]
test ecx, ecx
js 0x59cef4
mov edx, dword [esp + 0x20]
add dword [esp + 0x4c], edx
mov dword [esp + 0x58], 0
mov dword [esp + 0x60], edx
cmp dword [esp + 0xc0], 9
ja 0x59cb70
cmp dword [esp + 0xc0], 5
jle 0x59da3f
sub dword [esp + 0xc0], 4
xor eax, eax
cmp dword [esp + 0xc0], 3
je 0x59ce62
jg 0x59d1c4
cmp dword [esp + 0xc0], 2
jne 0x59cb7b
mov dword [esp + 0x64], 0
mov edx, dword [esp + 0xc4]
test edx, edx
jle 0x59d3de
cmp dword [esp + 0xc4], 0xe
setbe dl
mov ecx, dword [esp + 0xc4]
and edx, eax
mov dword [esp + 0x8c], ecx
mov eax, ecx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x48], ecx
mov dword [esp], eax
mov byte [esp + 0x18], dl
call fcn.0059da60
mov ecx, dword [esp + 0xb0]
movzx edx, byte [esp + 0x18]
mov ecx, dword [ecx + 0xc]
mov ebx, eax
sub ecx, 1
cmp ecx, 0
mov dword [esp + 0x44], ecx
je 0x59c976
jl 0x59cea0
and esi, 8
jne 0x59ce50
test dl, dl
je 0x59c525
mov edx, dword [esp + 0x44]
or edx, dword [esp + 0x20]
jne 0x59c525
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x8c], 0
fld qword [esp + 0x38]
test eax, eax
je 0x59c9b0
fld1
fucomp st(1)
fnstsw ax
sahf
ja 0x59d6f1
fld st(0)
mov eax, dword [esp + 0x48]
fadd st(1)
fadd dword [0x6aafdc]
fstp qword [esp + 0x68]
sub dword [esp + 0x6c], 0x3400000
test eax, eax
je 0x59c4e7
mov edx, dword [esp + 0x48]
fld st(0)
mov dword [esp + 0x74], 0
mov eax, dword [esp + 0x64]
test eax, eax
je 0x59d44f
fld qword [esp + 0x68]
lea esi, [ebx + 1]
fld dword [0x6aafe4]
fdiv qword [edx*8 + 0x6aaff8]
fnstcw word [esp + 0x7e]
mov dword [esp + 0x8c], 0
movzx eax, word [esp + 0x7e]
mov ah, 0xc
mov word [esp + 0x7c], ax
fsubrp st(1)
fxch st(1)
fldcw word [esp + 0x7c]
fist dword [esp + 0x78]
fldcw word [esp + 0x7e]
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x78], ecx
add ecx, 0x30
fild dword [esp + 0x78]
fsubp st(1)
fxch st(1)
mov byte [ebx], cl
fucom st(1)
fnstsw ax
sahf
ja 0x59caf0
fld st(1)
fsubr dword [0x6aafd0]
fxch st(1)
fucom st(1)
fnstsw ax
fstp st(1)
sahf
ja 0x59cde8
mov eax, dword [esp + 0x8c]
add eax, 1
cmp eax, edx
mov dword [esp + 0x8c], eax
jge 0x59c511
fld dword [0x6aafd4]
jmp 0x59cab7
fld st(1)
fsubr dword [0x6aafd0]
fxch st(1)
fucom st(1)
fnstsw ax
fstp st(1)
sahf
ja 0x59cdf0
mov eax, dword [esp + 0x8c]
add eax, 1
cmp edx, eax
mov dword [esp + 0x8c], eax
jle 0x59c517
fxch st(1)
fxch st(2)
fmul st(1), st(0)
fmul st(2), st(0)
fxch st(2)
fldcw word [esp + 0x7c]
fist dword [esp + 0x78]
fldcw word [esp + 0x7e]
mov eax, dword [esp + 0x78]
mov dword [esp + 0x78], eax
lea ecx, [eax + 0x30]
fild dword [esp + 0x78]
fsubp st(1)
fxch st(1)
mov byte [esi], cl
add esi, 1
fucom st(1)
fnstsw ax
sahf
jbe 0x59ca83
fstp st(0)
fstp st(1)
fstp st(1)
jmp 0x59caf4
fstp st(0)
fstp st(1)
fldz
fxch st(1)
fucompp
fnstsw ax
sahf
jp 0x59d933
jne 0x59d933
mov edx, dword [esp + 0x74]
mov dword [esp + 0x24], 0
add edx, 1
mov dword [esp + 0x28], edx
jmp 0x59c5d1
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.0059eb40
mov eax, dword [esp + 0x8c]
mov edx, dword [esp + 0xb4]
sub dword [esp + 0x40], eax
add edx, eax
mov dword [esp + 0x50], edx
jmp 0x59c6c6
bsr eax, dword [ebp + ecx*4 + 0x10]
mov dword [ebp + 0x10], ecx
shl ecx, 5
xor eax, 0x1f
sub ecx, eax
mov dword [esp + 0x40], ecx
jmp 0x59c6a4
mov dword [esp + 0xc0], 0
mov dword [esp + 0x78], edi
xor edx, edx
fild dword [esp + 0x78]
fmul qword [0x6aafc8]
mov dword [esp + 0x64], 1
mov dword [esp + 0x70], 0xffffffff
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0xc4], 0
fldcw word [esp + 0x7c]
fistp dword [esp + 0x78]
fldcw word [esp + 0x7e]
mov eax, dword [esp + 0x78]
add eax, 3
mov dword [esp + 0x8c], eax
jmp 0x59c93e
mov eax, dword [esp + 0x64]
test eax, eax
je 0x59cf30
cmp dword [esp + 0xc0], 1
jle 0x59d535
mov eax, dword [esp + 0x48]
sub eax, 1
cmp dword [esp + 0x58], eax
jl 0x59d40a
mov esi, dword [esp + 0x58]
sub esi, eax
mov eax, dword [esp + 0x48]
test eax, eax
js 0x59d657
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x8c], edx
mov edi, edx
mov dword [esp + 0x50], ecx
mov dword [esp], 1
add dword [esp + 0x54], edi
add dword [esp + 0x4c], edi
call fcn.0059e080
mov edi, eax
mov eax, dword [esp + 0x4c]
test eax, eax
jle 0x59cc69
mov eax, dword [esp + 0x50]
test eax, eax
jle 0x59cc69
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
cmp eax, edx
jle 0x59cc56
mov eax, edx
sub dword [esp + 0x54], eax
sub dword [esp + 0x50], eax
sub dword [esp + 0x4c], eax
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x58]
test eax, eax
jle 0x59ccb9
mov ecx, dword [esp + 0x64]
test ecx, ecx
je 0x59d3f3
test esi, esi
jle 0x59ccad
mov dword [esp], edi
mov dword [esp + 4], esi
call fcn.0059e210
mov dword [esp + 4], ebp
mov dword [esp], eax
mov edi, eax
call fcn.0059e0b0
mov dword [esp], ebp
mov dword [esp + 0x18], eax
call fcn.0059df30
mov eax, dword [esp + 0x18]
mov ebp, eax
mov eax, dword [esp + 0x58]
sub eax, esi
jne 0x59d41f
mov dword [esp], 1
call fcn.0059e080
mov edx, dword [esp + 0x60]
test edx, edx
mov dword [esp + 0x38], eax
jle 0x59cce5
mov edx, dword [esp + 0x60]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.0059e210
mov dword [esp + 0x38], eax
cmp dword [esp + 0xc0], 1
mov dword [esp + 0x58], 0
jle 0x59d341
mov eax, dword [esp + 0x60]
mov esi, 0x1f
test eax, eax
je 0x59cd17
mov edx, dword [esp + 0x38]
mov eax, dword [edx + 0x10]
bsr esi, dword [edx + eax*4 + 0x10]
xor esi, 0x1f
sub esi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x54]
sub esi, 4
and esi, 0x1f
add ecx, esi
mov eax, esi
test ecx, ecx
mov dword [esp + 0x8c], esi
jle 0x59cd49
mov dword [esp], ebp
mov dword [esp + 4], ecx
call fcn.0059e330
mov ebp, eax
mov eax, dword [esp + 0x8c]
add eax, dword [esp + 0x4c]
test eax, eax
jle 0x59cd65
mov dword [esp + 4], eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call fcn.0059e330
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x5c]
test eax, eax
jne 0x59d20a
cmp dword [esp + 0xc0], 2
jle 0x59d028
mov eax, dword [esp + 0x48]
test eax, eax
jg 0x59d028
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x59cebd
mov eax, dword [esp + 0x38]
mov dword [esp + 8], 0
mov dword [esp + 4], 5
mov dword [esp], eax
call fcn.0059df80
mov dword [esp], ebp
mov dword [esp + 4], eax
mov dword [esp + 0x38], eax
call fcn.0059e430
test eax, eax
jle 0x59cebd
mov edx, dword [esp + 0x20]
add edx, 2
mov dword [esp + 0x28], edx
jmp 0x59c599
movzx ecx, byte [eax - 1]
mov esi, eax
jmp 0x59ce02
fstp st(0)
fstp st(0)
fstp st(0)
jmp 0x59ce02
fstp st(0)
fstp st(0)
fstp st(0)
fstp st(0)
jmp 0x59ce02
fstp st(0)
fstp st(0)
fstp st(0)
fstp st(0)
cmp cl, 0x39
lea eax, [esi - 1]
jne 0x59d822
cmp eax, ebx
jne 0x59cde0
add dword [esp + 0x74], 1
mov ecx, 0x31
mov byte [ebx], 0x30
mov byte [eax], cl
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x24], 0x20
add ecx, 1
mov dword [esp + 0x28], ecx
jmp 0x59c5d1
mov dword [esp + 0x5c], 0
jmp 0x59c87f
mov eax, 3
sub eax, dword [esp + 0x44]
mov dword [esp + 0x44], eax
jmp 0x59c976
mov dword [esp + 0x64], 0
mov edx, dword [esp + 0xc4]
add edx, dword [esp + 0x20]
mov dword [esp + 0x70], edx
add edx, 1
test edx, edx
mov dword [esp + 0x48], edx
jle 0x59d3bf
cmp edx, 0xe
mov dword [esp + 0x8c], edx
setbe dl
and edx, eax
mov eax, dword [esp + 0x48]
jmp 0x59c93e
mov dword [esp + 0x44], 2
jmp 0x59c96d
fstp st(0)
jmp 0x59ceb3
fstp st(0)
mov dword [esp + 0x38], 0
xor edi, edi
mov ecx, dword [esp + 0xc4]
mov esi, ebx
mov dword [esp + 0x40], 0
mov dword [esp + 0x24], 0x10
neg ecx
mov dword [esp + 0x28], ecx
jmp 0x59c5af
neg eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x4c], 0
jmp 0x59c89a
mov ecx, dword [esp + 0x20]
sub dword [esp + 0x54], ecx
mov dword [esp + 0x60], 0
neg ecx
mov dword [esp + 0x58], ecx
jmp 0x59c8ba
fild dword [esp + 0x20]
fucompp
fnstsw ax
sahf
jp 0x59cf21
je 0x59c83c
sub dword [esp + 0x20], 1
jmp 0x59c83c
mov ecx, dword [esp + 0x54]
xor edi, edi
mov esi, dword [esp + 0x58]
mov dword [esp + 0x50], ecx
jmp 0x59cc38
fld qword [esp + 0x38]
lea esi, [ebx + 1]
fld st(0)
fdiv st(2)
fnstcw word [esp + 0x7e]
mov dword [esp + 0x8c], 1
movzx eax, word [esp + 0x7e]
mov ah, 0xc
mov word [esp + 0x7c], ax
fldcw word [esp + 0x7c]
fistp dword [esp + 0x78]
fldcw word [esp + 0x7e]
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x78], ecx
lea eax, [ecx + 0x30]
fild dword [esp + 0x78]
fmul st(2)
mov byte [ebx], al
fsubp st(1)
fldz
fxch st(1)
fucom st(1)
fnstsw ax
fstp st(1)
sahf
jnp 0x59d94b
mov eax, dword [esp + 0x8c]
cmp dword [esp + 0x48], eax
je 0x59d38c
fld dword [0x6aafd4]
mov edx, dword [esp + 0x48]
jmp 0x59cfc7
mov eax, dword [esp + 0x8c]
cmp edx, eax
je 0x59d38a
add eax, 1
fmul st(1), st(0)
mov dword [esp + 0x8c], eax
fld st(1)
fdiv st(3)
fldcw word [esp + 0x7c]
fistp dword [esp + 0x78]
fldcw word [esp + 0x7e]
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x78], ecx
lea eax, [ecx + 0x30]
fild dword [esp + 0x78]
fmul st(3)
mov byte [esi], al
add esi, 1
fsubp st(2)
fldz
fxch st(2)
fucom st(2)
fnstsw ax
fstp st(2)
sahf
jp 0x59cfb8
jne 0x59cfb8
fstp st(0)
fstp st(0)
fstp st(0)
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x24], 0
add ecx, 1
mov dword [esp + 0x28], ecx
jmp 0x59c5d1
mov eax, dword [esp + 0x64]
test eax, eax
je 0x59d26a
add esi, dword [esp + 0x50]
test esi, esi
jle 0x59d04a
mov dword [esp], edi
mov dword [esp + 4], esi
call fcn.0059e330
mov edi, eax
mov esi, dword [esp + 0x58]
mov edx, edi
test esi, esi
jne 0x59d740
mov dword [esp + 0x28], ebx
mov esi, edx
mov dword [esp + 0x4c], ebx
mov ebx, edi
mov dword [esp + 0x8c], 1
mov dword [esp + 0x40], edi
jmp 0x59d155
mov dword [esp], edx
mov dword [esp + 0x18], eax
call fcn.0059df30
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0xc0]
or edx, eax
jne 0x59d0ab
mov ecx, dword [esp + 0xb8]
test byte [ecx], 1
jne 0x59d0ab
mov edx, dword [esp + 0x44]
test edx, edx
je 0x59d96d
test edi, edi
js 0x59d5a1
or edi, dword [esp + 0xc0]
jne 0x59d0cc
mov edx, dword [esp + 0xb8]
test byte [edx], 1
je 0x59d5a1
test eax, eax
jg 0x59d799
mov edx, dword [esp + 0x28]
movzx eax, byte [esp + 0x2c]
mov ecx, dword [esp + 0x48]
mov byte [edx], al
add edx, 1
cmp dword [esp + 0x8c], ecx
mov dword [esp + 0x28], edx
je 0x59d784
mov dword [esp], ebp
mov dword [esp + 8], 0
mov dword [esp + 4], 0xa
call fcn.0059df80
cmp ebx, esi
mov dword [esp + 8], 0
mov dword [esp + 4], 0xa
mov dword [esp], ebx
mov ebp, eax
je 0x59d1b9
call fcn.0059df80
mov dword [esp], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 0xa
mov ebx, eax
call fcn.0059df80
mov esi, eax
add dword [esp + 0x8c], 1
mov eax, dword [esp + 0x38]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.0059db10
mov dword [esp + 4], ebx
mov dword [esp], ebp
mov dword [esp + 0x34], eax
add eax, 0x30
mov dword [esp + 0x2c], eax
call fcn.0059e430
mov dword [esp + 4], esi
mov edi, eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call fcn.0059e4a0
mov edx, eax
mov eax, 1
mov ecx, dword [edx + 0xc]
test ecx, ecx
jne 0x59d078
mov dword [esp + 4], edx
mov dword [esp], ebp
mov dword [esp + 0x18], edx
call fcn.0059e430
mov edx, dword [esp + 0x18]
jmp 0x59d078
call fcn.0059df80
mov ebx, eax
mov esi, eax
jmp 0x59d14d
cmp dword [esp + 0xc0], 4
je 0x59d37d
cmp dword [esp + 0xc0], 5
jne 0x59cb7b
mov dword [esp + 0x64], 1
jmp 0x59ce6a
mov edx, dword [esp + 0x40]
test edx, edx
je 0x59c5c9
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call fcn.0059df30
jmp 0x59c5c9
mov eax, dword [esp + 0x38]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.0059e430
test eax, eax
jns 0x59cd71
mov dword [esp], ebp
mov dword [esp + 8], 0
mov dword [esp + 4], 0xa
sub dword [esp + 0x20], 1
call fcn.0059df80
mov ebp, eax
mov eax, dword [esp + 0x64]
test eax, eax
jne 0x59d9a6
cmp dword [esp + 0xc0], 2
mov edx, dword [esp + 0x70]
jle 0x59d266
cmp dword [esp + 0x70], 0
jle 0x59da49
mov dword [esp + 0x48], edx
mov esi, ebx
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x48]
mov dword [esp + 0x30], ebx
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x8c], 1
jmp 0x59d2b2
mov dword [esp], ebp
mov dword [esp + 8], 0
mov dword [esp + 4], 0xa
call fcn.0059df80
add dword [esp + 0x8c], 1
mov ebp, eax
mov dword [esp + 4], ebx
mov dword [esp], ebp
call fcn.0059db10
add eax, 0x30
mov byte [esi], al
add esi, 1
cmp edi, dword [esp + 0x8c]
jg 0x59d290
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x40], 0
mov eax, dword [esp + 0x44]
test eax, eax
je 0x59d68a
cmp dword [esp + 0x44], 2
je 0x59d6c2
cmp dword [ebp + 0x10], 1
jle 0x59d874
movzx ecx, byte [esi - 1]
jmp 0x59d316
movzx ecx, byte [eax - 1]
mov esi, eax
cmp cl, 0x39
lea eax, [esi - 1]
jne 0x59d7e4
cmp eax, ebx
jne 0x59d310
mov edx, dword [esp + 0x20]
mov byte [ebx], 0x31
mov dword [esp + 0x24], 0x20
add edx, 2
mov dword [esp + 0x28], edx
jmp 0x59c5af
cmp dword [esp + 0x40], 1
jne 0x59ccfb
mov ecx, dword [esp + 0xb0]
mov eax, dword [ecx + 4]
add eax, 1
cmp dword [esp + 0xb4], eax
jle 0x59ccfb
add dword [esp + 0x54], 1
add dword [esp + 0x4c], 1
mov dword [esp + 0x58], 1
jmp 0x59ccfb
mov dword [esp + 0x64], 1
jmp 0x59c90a
fstp st(0)
mov eax, dword [esp + 0x44]
test eax, eax
je 0x59d56c
fstp st(0)
fstp st(0)
cmp dword [esp + 0x44], 1
je 0x59d679
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x24], 0x10
add ecx, 1
mov dword [esp + 0x28], ecx
jmp 0x59c5d1
cmp dword [esp + 0x48], 0xe
mov dword [esp + 0x8c], 1
setbe dl
and edx, eax
mov eax, 1
jmp 0x59c93e
mov edx, 1
mov dword [esp + 0xc4], 1
jmp 0x59c924
mov ecx, dword [esp + 0x58]
mov dword [esp], ebp
mov dword [esp + 4], ecx
call fcn.0059e210
mov ebp, eax
jmp 0x59ccb9
mov ecx, eax
xor esi, esi
sub ecx, dword [esp + 0x58]
mov dword [esp + 0x58], eax
add dword [esp + 0x60], ecx
jmp 0x59cc01
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.0059e210
mov ebp, eax
jmp 0x59ccb9
fstp st(0)
fstp st(0)
fstp st(0)
mov dword [esp + 0x28], 2
xor edi, edi
mov dword [esp + 0x38], 0
jmp 0x59c599
fld qword [esp + 0x68]
mov esi, ebx
fnstcw word [esp + 0x7e]
fmul qword [edx*8 + 0x6aaff8]
mov dword [esp + 0x8c], 1
movzx eax, word [esp + 0x7e]
fld qword [esp + 0x38]
mov ah, 0xc
fld dword [0x6aafd4]
fxch st(3)
mov word [esp + 0x7c], ax
jmp 0x59d493
fmul st(2)
add eax, 1
mov dword [esp + 0x8c], eax
fld st(0)
fldcw word [esp + 0x7c]
fist dword [esp + 0x78]
fldcw word [esp + 0x7e]
mov eax, dword [esp + 0x78]
test eax, eax
je 0x59d4b5
fstp st(1)
mov dword [esp + 0x78], eax
fild dword [esp + 0x78]
fsubp st(1)
jmp 0x59d4b7
fstp st(0)
lea ecx, [eax + 0x30]
mov byte [esi], cl
mov eax, dword [esp + 0x8c]
add esi, 1
cmp eax, edx
jne 0x59d485
fstp st(2)
fxch st(1)
fld dword [0x6aafe4]
fld st(2)
fadd st(1)
fxch st(2)
fucom st(2)
fnstsw ax
fstp st(2)
sahf
ja 0x59cdfa
fsubrp st(2)
fxch st(1)
fucomp st(1)
fnstsw ax
sahf
jbe 0x59c51f
fstp st(1)
fldz
fxch st(1)
fucompp
fnstsw ax
sahf
jp 0x59d8b3
jne 0x59d8b3
mov dword [esp + 0x24], 0
jmp 0x59d51d
movzx ecx, byte [eax - 1]
mov esi, eax
cmp cl, 0x30
lea eax, [esi - 1]
je 0x59d517
mov edx, dword [esp + 0x74]
add edx, 1
mov dword [esp + 0x28], edx
jmp 0x59c5d1
mov eax, dword [esp + 0xb0]
sub edi, dword [esp + 0x40]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x50]
sub eax, edi
cmp eax, ecx
jl 0x59d801
mov edx, dword [esp + 0x54]
add edi, 1
mov dword [esp + 0x8c], edi
mov esi, dword [esp + 0x58]
mov dword [esp + 0x50], edx
jmp 0x59cc22
fadd st(0)
fucom st(1)
fnstsw ax
sahf
ja 0x59d675
fxch st(1)
fucompp
fnstsw ax
sahf
jp 0x59d588
je 0x59d89e
mov edx, dword [esp + 0x20]
movzx ecx, byte [esi - 1]
mov dword [esp + 0x24], 0x10
mov dword [esp + 0x74], edx
jmp 0x59d51d
mov ecx, dword [esp + 0x44]
mov edx, esi
mov dword [esp + 0x40], ebx
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x4c]
mov edi, dword [esp + 0x2c]
test ecx, ecx
je 0x59d834
cmp dword [ebp + 0x10], 1
jle 0x59d82a
cmp dword [esp + 0x44], 2
je 0x59d850
mov dword [esp + 0x24], ebx
mov ebx, edx
jmp 0x59d60f
mov dword [esp], ebp
mov ebx, edi
mov dword [esp + 8], 0
mov dword [esp + 4], 0xa
call fcn.0059df80
mov ebp, eax
mov eax, dword [esp + 0x38]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.0059db10
add eax, 0x30
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.0059e430
test eax, eax
jle 0x59d8c0
movzx ecx, byte [esp + 0x2c]
mov byte [esi], cl
add esi, 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0xa
mov dword [esp], ebx
call fcn.0059df80
cmp dword [esp + 0x40], ebx
mov edi, eax
jne 0x59d5dc
mov dword [esp + 0x40], eax
jmp 0x59d5dc
mov edx, dword [esp + 0x54]
xor edi, edi
sub edx, dword [esp + 0x48]
mov dword [esp + 0x8c], 0
mov dword [esp + 0x50], edx
jmp 0x59cc22
fstp st(0)
fstp st(0)
mov edx, dword [esp + 0x20]
movzx ecx, byte [esi - 1]
mov dword [esp + 0x74], edx
jmp 0x59ce02
mov dword [esp], ebp
mov dword [esp + 4], 1
call fcn.0059e330
mov ebp, eax
mov eax, dword [esp + 0x38]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.0059e430
cmp eax, 0
jg 0x59d304
jne 0x59d6c2
test byte [esp + 0x2c], 1
jne 0x59d304
cmp dword [ebp + 0x10], 1
jle 0x59da02
mov dword [esp + 0x24], 0x10
jmp 0x59d6d8
mov esi, eax
cmp byte [esi - 1], 0x30
lea eax, [esi - 1]
je 0x59d6d6
mov edx, dword [esp + 0x20]
add edx, 1
mov dword [esp + 0x28], edx
jmp 0x59c5af
mov eax, dword [esp + 0x48]
test eax, eax
je 0x59c4d1
mov eax, dword [esp + 0x70]
test eax, eax
jle 0x59c521
fld st(0)
mov edx, dword [esp + 0x70]
fmul dword [0x6aafd4]
mov dword [esp + 0x74], 0xffffffff
fst qword [esp + 0x38]
fld st(0)
fmul dword [0x6aafd8]
fadd dword [0x6aafdc]
fstp qword [esp + 0x68]
sub dword [esp + 0x6c], 0x3400000
jmp 0x59c9e0
mov eax, dword [edi + 4]
mov dword [esp], eax
call fcn.0059de70
lea edx, [eax + 0xc]
mov esi, eax
mov eax, dword [edi + 0x10]
mov dword [esp], edx
lea ecx, [eax*4 + 8]
lea eax, [edi + 0xc]
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
mov dword [esp + 4], 1
mov dword [esp], esi
call fcn.0059e330
mov edx, eax
jmp 0x59d058
mov edx, esi
mov esi, dword [esp + 0x28]
mov dword [esp + 0x40], ebx
mov edi, edx
mov ebx, dword [esp + 0x4c]
jmp 0x59d2e3
cmp dword [esp + 0x44], 2
je 0x59d0d4
cmp dword [esp + 0x2c], 0x39
mov edx, esi
mov dword [esp + 0x40], ebx
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x4c]
je 0x59d88c
movzx eax, byte [esp + 0x2c]
mov edi, edx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x24], 0x20
add eax, 1
add ecx, 1
mov byte [esi], al
add esi, 1
mov dword [esp + 0x28], ecx
jmp 0x59c5af
add ecx, 1
mov byte [eax], cl
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x24], 0x20
add ecx, 1
mov dword [esp + 0x28], ecx
jmp 0x59c5af
mov edi, dword [esp + 0x50]
mov esi, dword [esp + 0x58]
sub edi, ecx
mov ecx, dword [esp + 0x54]
add edi, 1
mov dword [esp + 0x8c], edi
mov dword [esp + 0x50], ecx
jmp 0x59cc22
add ecx, 1
jmp 0x59ce1f
cmp dword [ebp + 0x14], 0
jne 0x59d5c9
test eax, eax
jg 0x59d8df
mov dword [esp + 0x24], 0
cmp dword [ebp + 0x10], 1
jg 0x59d850
cmp dword [ebp + 0x14], 0
je 0x59d858
mov dword [esp + 0x24], 0x10
movzx eax, byte [esp + 0x2c]
mov edi, edx
mov byte [esi], al
mov ecx, dword [esp + 0x20]
add esi, 1
add ecx, 1
mov dword [esp + 0x28], ecx
jmp 0x59c5af
mov ecx, dword [ebp + 0x14]
test ecx, ecx
jne 0x59d304
mov dword [esp + 0x24], 0
jmp 0x59d6d8
mov byte [esi], 0x39
mov edi, edx
add esi, 1
mov ecx, 0x39
jmp 0x59d316
mov edx, dword [esp + 0x20]
and ecx, 1
movzx ecx, byte [esi - 1]
mov dword [esp + 0x74], edx
jne 0x59ce02
mov dword [esp + 0x24], 0x10
jmp 0x59d51d
cmp dword [esp + 0x2c], 0x39
mov edx, ebx
mov ebx, dword [esp + 0x24]
je 0x59d88c
add dword [esp + 0x2c], 1
mov dword [esp + 0x24], 0x20
jmp 0x59d858
mov dword [esp], ebp
mov dword [esp + 4], 1
mov dword [esp + 0x18], edx
call fcn.0059e330
mov ebp, eax
mov eax, dword [esp + 0x38]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.0059e430
mov edx, dword [esp + 0x18]
cmp eax, 0
jle 0x59d9de
mov ecx, dword [esp + 0x34]
add ecx, 0x31
cmp edi, 0x39
mov dword [esp + 0x2c], ecx
je 0x59d88c
mov dword [esp + 0x24], 0x20
jmp 0x59d844
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x24], 0x10
add ecx, 1
mov dword [esp + 0x28], ecx
jmp 0x59c5d1
jne 0x59cf9b
fstp st(0)
fstp st(0)
mov edx, dword [esp + 0x20]
mov dword [esp + 0x24], 0
add edx, 1
mov dword [esp + 0x28], edx
jmp 0x59c5d1
cmp dword [esp + 0x2c], 0x39
mov edx, esi
mov dword [esp + 0x40], ebx
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x4c]
je 0x59d88c
test edi, edi
jle 0x59da19
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x24], 0x20
add ecx, 0x31
mov dword [esp + 0x2c], ecx
jmp 0x59d858
mov dword [esp], edi
mov dword [esp + 8], 0
mov dword [esp + 4], 0xa
call fcn.0059df80
cmp dword [esp + 0x70], 0
mov edi, eax
jg 0x59d9d1
cmp dword [esp + 0xc0], 2
jg 0x59d9f5
mov edx, dword [esp + 0x70]
mov dword [esp + 0x48], edx
jmp 0x59d034
jne 0x59d926
test byte [esp + 0x2c], 1
je 0x59d926
nop
jmp 0x59d912
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x48], ecx
jmp 0x59cd8b
cmp dword [ebp + 0x14], 0
mov dword [esp + 0x24], 0
jne 0x59d6cc
jmp 0x59d6d8
cmp dword [ebp + 0x10], 1
mov dword [esp + 0x24], 0x10
jg 0x59d858
cmp dword [ebp + 0x14], 1
sbb eax, eax
not eax
and eax, 0x10
mov dword [esp + 0x24], eax
jmp 0x59d858
mov eax, 1
jmp 0x59c8e0
mov dword [esp + 0x48], edx
jmp 0x59cd8b