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

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
cmp ecx, 0x13
jle 0x591030
mov eax, 4
xor edi, edi
nop
add eax, eax
add edi, 1
lea edx, [eax + 0xf]
cmp ecx, edx
jg 0x590fe0
mov dword [esp], edi
call fcn.00592d10
lea edx, [esi + 1]
mov dword [eax], edi
movzx ecx, byte [esi]
lea edi, [eax + 4]
mov byte [eax + 4], cl
mov eax, edi
test cl, cl
je 0x59101f
lea esi, [esi]
nop
movzx ecx, byte [edx]
add eax, 1
add edx, 1
mov byte [eax], cl
test cl, cl
jne 0x591010
test ebx, ebx
je 0x591025
mov dword [ebx], eax
add esp, 0x10
mov eax, edi
pop ebx
pop esi
pop edi
ret
xor edi, edi
jmp 0x590fec
push ebp
push edi
push esi
push ebx
sub esp, 0xbc
mov eax, dword [esp + 0xd4]
mov esi, dword [esp + 0xe0]
mov edi, dword [esp + 0xe4]
mov edx, dword [esp + 0xd0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xd8]
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0xe8]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xdc]
mov dword [esp + 0x18], esi
mov esi, dword [eax]
mov ecx, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x30], edi
mov edi, dword [esp + 0xec]
mov eax, esi
mov dword [esp + 0x38], edx
and eax, 0xffffffcf
mov dword [esp + 0x1c], edi
mov dword [ecx], eax
mov eax, esi
and eax, 7
cmp eax, 3
je 0x591590
mov edi, esi
and edi, 4
mov dword [esp + 0x60], edi
jne 0x591508
test eax, eax
je 0x591558
mov edi, dword [edx]
mov eax, 0x20
xor edx, edx
cmp edi, 0x20
jle 0x591319
add eax, eax
add edx, 1
cmp edi, eax
jg 0x591310
mov dword [esp], edx
lea ebx, [edi - 1]
sar ebx, 5
call fcn.00592d10
mov dword [esp + 0x40], ebx
mov ebp, eax
mov eax, dword [esp + 0x28]
lea edx, [ebp + 0x14]
lea ecx, [eax + ebx*4]
lea esi, [esi]
nop
mov ebx, dword [eax]
add eax, 4
add edx, 4
mov dword [edx - 4], ebx
cmp ecx, eax
jae 0x591340
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x40]
add ecx, 1
add eax, 1
lea ebx, [ebx*4 + 4]
cmp ecx, eax
mov eax, 4
cmovb ebx, eax
sar ebx, 2
jmp 0x591380
test ebx, ebx
je 0x5915d0
mov eax, ebx
sub ebx, 1
mov edx, dword [ebp + ebx*4 + 0x14]
test edx, edx
je 0x591378
bsr edx, dword [ebp + ebx*4 + 0x14]
mov dword [ebp + 0x10], eax
shl eax, 5
xor edx, 0x1f
sub eax, edx
mov ebx, eax
mov dword [esp], ebp
call fcn.00592bc0
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0xac], eax
mov dword [esp + 0x68], ecx
test eax, eax
jne 0x5915e0
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x591550
lea eax, [esp + 0xac]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.005936b0
fstp qword [esp + 0x48]
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x68]
and edx, 0xfffff
or edx, 0x3ff00000
add eax, ebx
mov dword [esp + 0x44], edx
fld qword [esp + 0x40]
mov dword [esp + 0x58], eax
fsub dword [0x5a86a8]
lea ecx, [eax - 1]
mov eax, 1
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x58]
fmul qword [0x5a86b0]
fadd qword [0x5a86b8]
mov dword [esp + 0x50], ecx
sub eax, edx
fild dword [esp + 0x50]
test ecx, ecx
fmul qword [0x5a86c0]
cmovns eax, ecx
sub eax, 0x435
faddp st(1)
test eax, eax
jle 0x59145c
mov dword [esp + 0x50], eax
fild dword [esp + 0x50]
fmul qword [0x5a86c8]
faddp st(1)
fst qword [esp + 0x50]
cvttsd2si eax, qword [esp + 0x50]
fldz
fcompi st(1)
mov dword [esp + 0x50], eax
ja 0x591988
fstp st(0)
mov eax, ecx
mov edx, dword [esp + 0x48]
shl eax, 0x14
add eax, edx
mov dword [esp + 0x44], eax
mov eax, ebx
sub eax, ecx
lea ecx, [eax - 1]
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x50]
cmp ecx, 0x16
ja 0x591608
fld qword [ecx*8 + 0x5a8720]
fst qword [esp + 0x48]
fld qword [esp + 0x40]
fxch st(1)
fcompi st(1)
fstp st(0)
ja 0x5919f0
mov dword [esp + 0x88], 0
mov dword [esp + 0x70], 0
test eax, eax
jg 0x5914e8
mov edx, 1
mov dword [esp + 0x64], 0
sub edx, eax
mov dword [esp + 0x70], edx
lea esi, [esi]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x78], 0
add dword [esp + 0x64], ecx
mov dword [esp + 0x74], ecx
jmp 0x59165e
xor ebx, ebx
cmp eax, 4
jne 0x591580
mov eax, dword [esp + 0x18]
mov dword [eax], 0xffff8000
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xd8], 3
mov dword [esp + 0xd4], eax
mov dword [esp + 0xd0], 0x5a86a1
add esp, 0xbc
pop ebx
pop esi
pop edi
pop ebp
jmp 0x590fc0
mov dword [esp], ebp
call fcn.00592df0
mov eax, dword [esp + 0x18]
mov dword [eax], 1
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], 0x5a86a5
call 0x590fc0
mov ebx, eax
add esp, 0xbc
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x18]
mov dword [eax], 0xffff8000
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xd8], 8
mov dword [esp + 0xd4], eax
mov dword [esp + 0xd0], 0x5a8698
add esp, 0xbc
pop ebx
pop esi
pop edi
pop ebp
jmp 0x590fc0
mov dword [ebp + 0x10], 0
jmp 0x59139f
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.00592a90
mov eax, dword [esp + 0xac]
mov edx, dword [esp + 0x2c]
add edx, eax
sub ebx, eax
mov dword [esp + 0x68], edx
jmp 0x5913be
mov dword [esp + 0x88], 1
mov edx, dword [esp + 0x64]
mov dword [esp + 0x70], 0
test edx, edx
jns 0x591636
mov edx, 1
mov dword [esp + 0x64], 0
sub edx, eax
mov dword [esp + 0x70], edx
mov eax, dword [esp + 0x50]
test eax, eax
jns 0x5914e8
mov eax, dword [esp + 0x50]
sub dword [esp + 0x70], eax
mov dword [esp + 0x50], 0
mov ecx, eax
mov dword [esp + 0x74], eax
neg ecx
mov dword [esp + 0x78], ecx
mov eax, dword [esp + 0x20]
cmp eax, 9
ja 0x5918f0
cmp eax, 5
jg 0x5919a8
mov eax, dword [esp + 0x58]
add eax, 0x3fd
cmp eax, 0x7f7
setbe al
movzx eax, al
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x20]
cmp eax, 4
je 0x591d63
cmp eax, 5
je 0x5921fc
mov dword [esp + 0x7c], 0
cmp eax, 2
je 0x591d6b
cmp eax, 3
jne 0x591913
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x74]
add eax, edx
mov edx, 1
mov dword [esp + 0x8c], eax
add eax, 1
test eax, eax
mov dword [esp + 0x48], eax
cmovg edx, eax
mov eax, edx
mov dword [esp], eax
mov dword [esp + 0xac], edx
call fcn.00590f80
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 0xc]
sub eax, 1
mov dword [esp + 0x58], eax
je 0x59172e
mov ecx, dword [esp + 0x58]
mov eax, 2
test ecx, ecx
cmovns eax, ecx
and esi, 8
mov dword [esp + 0x58], eax
mov ecx, eax
je 0x591b78
mov eax, 3
sub eax, ecx
mov dword [esp + 0x58], eax
mov esi, dword [esp + 0x48]
cmp esi, 0xe
setbe al
and al, byte [esp + 0x80]
mov ecx, eax
je 0x591b78
mov eax, dword [esp + 0x74]
or eax, dword [esp + 0x58]
jne 0x591b78
movsd xmm0, qword [esp + 0x40]
mov eax, dword [esp + 0x88]
mov dword [esp + 0xac], 0
movsd qword [esp + 0x58], xmm0
test eax, eax
je 0x591787
fld qword [esp + 0x58]
fld1
fcompi st(1)
ja 0x592624
fstp st(0)
fld qword [esp + 0x58]
fadd st(0)
fadd dword [0x5a86e4]
fstp qword [esp + 0x90]
mov eax, dword [esp + 0x90]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x94]
sub eax, 0x3400000
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x48]
test eax, eax
je 0x591b26
movsd xmm1, qword [esp + 0x58]
mov esi, dword [esp + 0x48]
mov dword [esp + 0x90], 0
movsd qword [esp + 0x98], xmm1
mov eax, dword [esp + 0x7c]
fld qword [esp + 0x80]
fld qword [esi*8 + 0x5a8718]
test eax, eax
je 0x592209
fdivr dword [0x5a86ec]
mov ecx, dword [esp + 0x6c]
cvttsd2si eax, qword [esp + 0x98]
lea edx, [ecx + 1]
mov dword [esp + 0x40], eax
add eax, 0x30
mov byte [ecx], al
fsubrp st(1)
fild dword [esp + 0x40]
fsubr qword [esp + 0x98]
fxch st(1)
fcomi st(1)
jbe 0x59188c
fstp st(0)
jmp 0x592804
mov eax, dword [esp + 0xac]
add eax, 1
mov dword [esp + 0xac], eax
cmp eax, esi
jge 0x591b51
fld dword [0x5a86dc]
add edx, 1
fmul st(1), st(0)
fmulp st(2)
fxch st(1)
fst qword [esp + 0x40]
cvttsd2si eax, qword [esp + 0x40]
mov dword [esp + 0x40], eax
fild dword [esp + 0x40]
add eax, 0x30
mov byte [edx - 1], al
fsubp st(1)
fxch st(1)
fcomi st(1)
ja 0x592802
fld st(1)
fsubr dword [0x5a86d8]
fxch st(1)
fcomi st(1)
fstp st(1)
jbe 0x591840
fstp st(0)
fstp st(0)
movzx ecx, byte [edx - 1]
mov ebx, dword [esp + 0x6c]
jmp 0x5918be
cmp eax, ebx
je 0x59273f
movzx ecx, byte [eax - 1]
mov edx, eax
lea eax, [edx - 1]
cmp cl, 0x39
je 0x5918b0
mov dword [esp + 0x6c], edx
add ecx, 1
mov byte [eax], cl
mov eax, dword [esp + 0x90]
mov dword [esp + 0x60], 0x20
add eax, 1
mov dword [esp + 0x64], eax
jmp 0x591abf
mov eax, dword [esp + 0x58]
mov dword [esp + 0x20], 0
add eax, 0x3fd
cmp eax, 0x7f7
setbe al
movzx eax, al
mov dword [esp + 0x80], eax
mov dword [esp + 0x30], edi
fild dword [esp + 0x30]
fmul qword [0x5a86d0]
fstp qword [esp + 0x30]
cvttsd2si eax, qword [esp + 0x30]
add eax, 3
mov dword [esp], eax
mov dword [esp + 0xac], eax
call fcn.00590f80
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x30], eax
sub eax, 1
mov dword [esp + 0x58], eax
je 0x591a05
mov dword [esp + 0x30], 0
mov dword [esp + 0x7c], 1
mov dword [esp + 0x8c], 0xffffffff
mov dword [esp + 0x48], 0xffffffff
jmp 0x591706
fild dword [esp + 0x50]
fucompi st(1)
fstp st(0)
jp 0x591998
je 0x591476
sub dword [esp + 0x50], 1
jmp 0x591476
mov dword [esp + 0x80], 0
sub eax, 4
mov dword [esp + 0x20], eax
cmp eax, 4
je 0x591d63
cmp eax, 5
je 0x5921fc
mov dword [esp + 0x7c], 0
cmp eax, 2
je 0x591d6b
mov dword [esp + 0x20], 3
jmp 0x5916bf
sub dword [esp + 0x50], 1
mov dword [esp + 0x88], 0
jmp 0x591613
mov eax, dword [esp + 0x68]
mov dword [esp + 0x30], 0
test eax, eax
js 0x5927c3
mov dword [esp + 0x7c], 1
mov dword [esp + 0x8c], 0xffffffff
mov dword [esp + 0x48], 0xffffffff
lea esi, [esi]
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x74]
cmp dword [esi + 0x14], eax
jl 0x591b84
mov edx, dword [esp + 0x30]
fld qword [eax*8 + 0x5a8720]
test edx, edx
jns 0x5922dc
mov esi, dword [esp + 0x48]
test esi, esi
jg 0x5922dc
jne 0x591d8f
fmul dword [0x5a86e8]
fld qword [esp + 0x40]
fxch st(1)
fcompi st(1)
fstp st(0)
jae 0x591d91
add eax, 2
mov dword [esp + 0x40], 0
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x64], eax
add dword [esp + 0x6c], 1
mov byte [ebx], 0x31
mov dword [esp + 0x60], 0x20
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call fcn.00592df0
test esi, esi
je 0x591abf
mov dword [esp], esi
call fcn.00592df0
mov dword [esp], ebp
call fcn.00592df0
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x6c]
mov edi, dword [esp + 0x64]
mov byte [eax], 0
mov dword [esi], edi
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x591ae2
mov dword [esi], eax
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x60]
or dword [eax], esi
add esp, 0xbc
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
fstp st(0)
fld qword [esp + 0x58]
fadd st(0)
fadd dword [0x5a86e4]
fstp qword [esp + 0x40]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x44]
sub eax, 0x3400000
mov dword [esp + 0x84], eax
fld qword [esp + 0x58]
fsub dword [0x5a86e8]
fld qword [esp + 0x80]
fxch st(1)
fcomi st(1)
ja 0x5926e8
fxch st(1)
fchs
fcompi st(1)
fstp st(0)
ja 0x591d91
jmp 0x591b59
fstp st(0)
fstp st(0)
jmp 0x591b59
fstp st(0)
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x58], 0
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
lea esi, [esi]
mov ecx, dword [esp + 0x68]
test ecx, ecx
jns 0x591a38
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x591dc0
mov esi, dword [esp + 0x38]
sub edi, ebx
lea eax, [edi + 1]
mov edx, dword [esi + 4]
mov esi, dword [esp + 0x68]
mov dword [esp + 0xac], eax
mov ecx, esi
sub ecx, edi
cmp ecx, edx
jge 0x5921b8
mov edi, dword [esp + 0x20]
lea eax, [edi - 3]
and eax, 0xfffffffd
je 0x5921c3
mov eax, esi
mov esi, dword [esp + 0x48]
sub eax, edx
add eax, 1
cmp edi, 1
setg cl
test esi, esi
mov dword [esp + 0xac], eax
setg dl
test cl, dl
je 0x591bec
cmp eax, esi
jg 0x592955
mov esi, dword [esp + 0x70]
add dword [esp + 0x64], eax
mov edx, dword [esp + 0x78]
add eax, esi
mov edi, esi
mov dword [esp + 0x70], eax
mov dword [esp], 1
mov dword [esp + 0x40], edx
call fcn.00592f40
mov dword [esp + 0x7c], 1
mov edx, dword [esp + 0x40]
mov esi, eax
test edi, edi
jle 0x591c44
mov ecx, dword [esp + 0x64]
test ecx, ecx
jle 0x591c44
cmp edi, ecx
mov eax, ecx
cmovle eax, edi
sub dword [esp + 0x70], eax
sub ecx, eax
mov dword [esp + 0xac], eax
sub edi, eax
mov dword [esp + 0x64], ecx
mov eax, dword [esp + 0x78]
test eax, eax
je 0x591c6e
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x591c5c
test edx, edx
jne 0x592469
mov eax, dword [esp + 0x78]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.00593170
mov ebp, eax
mov dword [esp], 1
call fcn.00592f40
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x50]
test eax, eax
jne 0x592140
cmp dword [esp + 0x20], 1
jle 0x592180
mov ebx, 0x1f
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x70]
sub ebx, eax
sub ebx, 4
and ebx, 0x1f
add edx, ebx
mov dword [esp + 0xac], ebx
mov eax, ebx
test edx, edx
jle 0x591cce
mov dword [esp], ebp
mov dword [esp + 4], edx
call fcn.005932f0
mov ebp, eax
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0x64]
add ecx, eax
test ecx, ecx
jle 0x591cec
mov eax, dword [esp + 0x40]
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.005932f0
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x88]
cmp dword [esp + 0x20], 2
setg dl
test eax, eax
jne 0x592000
mov eax, dword [esp + 0x48]
test eax, eax
jg 0x591dd0
test dl, dl
je 0x591dd0
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x591d9b
mov eax, dword [esp + 0x40]
mov dword [esp + 8], 0
mov dword [esp + 4], 5
mov dword [esp], eax
call fcn.00592e60
mov dword [esp], ebp
mov dword [esp + 4], eax
mov dword [esp + 0x40], eax
call fcn.00593430
test eax, eax
jle 0x591d9b
mov eax, dword [esp + 0x74]
mov ebx, dword [esp + 0x6c]
add eax, 2
mov dword [esp + 0x64], eax
jmp 0x591a97
mov dword [esp + 0x7c], 1
mov ecx, dword [esp + 0x30]
mov eax, 1
test ecx, ecx
cmovg eax, ecx
mov dword [esp + 0x8c], eax
mov edx, eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x30], eax
jmp 0x5916e3
fstp st(0)
mov dword [esp + 0x40], 0
xor esi, esi
mov eax, dword [esp + 0x30]
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x60], 0x10
neg eax
mov dword [esp + 0x64], eax
jmp 0x591aa7
mov edx, dword [esp + 0x78]
mov edi, dword [esp + 0x70]
xor esi, esi
jmp 0x591c1e
mov eax, dword [esp + 0x74]
add eax, 1
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x592080
add ebx, edi
test ebx, ebx
jle 0x591dfb
mov dword [esp], esi
mov dword [esp + 4], ebx
call fcn.005932f0
mov esi, eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x2c], esi
test eax, eax
jne 0x5926a2
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x30], eax
mov eax, 1
jmp 0x591ee7
mov dword [esp], edx
call fcn.00592df0
mov eax, 1
test ebx, ebx
js 0x592510
or ebx, dword [esp + 0x20]
jne 0x591e48
mov edx, dword [esp + 0x28]
test byte [edx], 1
je 0x592510
mov edi, dword [esp + 0x30]
add edi, 1
mov ebx, edi
test eax, eax
jle 0x591e60
cmp dword [esp + 0x58], 2
jne 0x592707
movzx eax, byte [esp + 0x38]
mov byte [edi - 1], al
mov eax, dword [esp + 0x48]
cmp dword [esp + 0xac], eax
je 0x592730
mov dword [esp], ebp
mov dword [esp + 8], 0
mov dword [esp + 4], 0xa
call fcn.00592e60
mov dword [esp + 8], 0
mov ebp, eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], 0xa
mov dword [esp], esi
cmp esi, eax
je 0x591ff0
call fcn.00592e60
mov dword [esp + 8], 0
mov esi, eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], 0xa
mov dword [esp], eax
call fcn.00592e60
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 0x30], edi
add eax, 1
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x40]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.00591070
mov dword [esp + 4], esi
mov dword [esp], ebp
lea ecx, [eax + 0x30]
mov edi, eax
mov dword [esp + 0x38], ecx
call fcn.00593430
mov ecx, dword [esp + 0x2c]
mov ebx, eax
mov eax, dword [esp + 0x40]
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.00593480
mov edx, eax
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x591e20
mov dword [esp + 4], edx
mov dword [esp], ebp
mov dword [esp + 0x68], edx
call fcn.00593430
mov edx, dword [esp + 0x68]
mov dword [esp + 0x50], eax
mov dword [esp], edx
call fcn.00592df0
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x20]
or eax, edx
jne 0x5923a0
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
mov dword [esp + 0x50], edx
and edx, 1
or edx, dword [esp + 0x58]
jne 0x591e2d
mov ecx, dword [esp + 0x38]
cmp ecx, 0x39
je 0x5929ea
test ebx, ebx
jle 0x592a5c
mov dword [esp + 0x60], 0x20
lea ecx, [edi + 0x31]
mov eax, dword [esp + 0x30]
mov edx, esi
mov esi, dword [esp + 0x2c]
mov byte [eax], cl
lea edi, [eax + 1]
lea esi, [esi]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x20], edx
mov dword [esp], eax
call fcn.00592df0
test esi, esi
je 0x5923d7
mov edx, dword [esp + 0x20]
test edx, edx
je 0x591fdc
cmp edx, esi
je 0x591fdc
mov dword [esp], edx
call fcn.00592df0
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x6c], edi
jmp 0x591ab7
call fcn.00592e60
mov dword [esp + 0x2c], eax
mov esi, eax
jmp 0x591ed9
mov eax, dword [esp + 0x40]
mov dword [esp], ebp
mov byte [esp + 0x2c], dl
mov dword [esp + 4], eax
call fcn.00593430
movzx edx, byte [esp + 0x2c]
test eax, eax
jns 0x591d03
mov dword [esp], ebp
mov eax, dword [esp + 0x74]
mov dword [esp + 8], 0
mov dword [esp + 4], 0xa
sub eax, 1
mov dword [esp + 0x38], eax
call fcn.00592e60
mov edx, dword [esp + 0x8c]
mov ecx, dword [esp + 0x7c]
mov ebp, eax
test edx, edx
movzx edx, byte [esp + 0x2c]
setle al
and edx, eax
test ecx, ecx
jne 0x5928b9
test dl, dl
jne 0x5927db
mov eax, dword [esp + 0x74]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x48], eax
mov dword [esp + 0x20], esi
mov ebx, dword [esp + 0x6c]
mov eax, 1
mov edi, dword [esp + 0x40]
mov esi, dword [esp + 0x48]
jmp 0x5920c4
mov dword [esp], ebp
mov dword [esp + 8], 0
mov dword [esp + 4], 0xa
call fcn.00592e60
mov ebp, eax
mov eax, dword [esp + 0xac]
add eax, 1
mov dword [esp + 4], edi
add ebx, 1
mov dword [esp], ebp
mov dword [esp + 0xac], eax
call fcn.00591070
add eax, 0x30
mov byte [ebx - 1], al
cmp dword [esp + 0xac], esi
jl 0x5920a0
mov esi, dword [esp + 0x20]
mov ecx, eax
xor edx, edx
mov edi, dword [esp + 0x58]
test edi, edi
je 0x5924aa
mov eax, dword [ebp + 0x10]
cmp edi, 2
je 0x5924ef
cmp eax, 1
jg 0x5923a9
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x5923a9
test eax, eax
setne al
movzx eax, al
shl eax, 4
mov dword [esp + 0x60], eax
lea esi, [esi]
mov edi, ebx
sub ebx, 1
cmp byte [ebx], 0x30
je 0x592130
jmp 0x591fb0
mov eax, dword [esp + 0x50]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call fcn.00593170
cmp dword [esp + 0x20], 1
mov dword [esp + 0x40], eax
jle 0x592416
mov dword [esp + 0x50], 0
mov ebx, dword [esp + 0x40]
mov eax, dword [ebx + 0x10]
bsr ebx, dword [ebx + eax*4 + 0x10]
xor ebx, 0x1f
jmp 0x591c9a
cmp ebx, 1
jne 0x591c95
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 4]
add eax, 1
cmp dword [esp + 0x2c], eax
jle 0x591c95
add dword [esp + 0x70], 1
add dword [esp + 0x64], 1
mov dword [esp + 0x50], 1
jmp 0x591c95
cmp dword [esp + 0x20], 1
jle 0x591bec
mov edi, dword [esp + 0x48]
mov esi, dword [esp + 0x78]
lea eax, [edi - 1]
cmp esi, eax
jl 0x5923e4
mov edx, esi
sub edx, eax
test edi, edi
jns 0x5928fc
mov edi, dword [esp + 0x70]
mov eax, dword [esp + 0x48]
mov dword [esp + 0xac], 0
sub edi, eax
jmp 0x591c00
mov dword [esp + 0x7c], 1
jmp 0x5916bf
fmulp st(1)
fld qword [esp + 0x40]
mov dword [esp + 0x80], ebp
xor edi, edi
mov dword [esp + 0xac], 1
mov edx, dword [esp + 0x6c]
mov ebp, ecx
fld st(0)
jmp 0x592242
add eax, 1
fmul dword [0x5a86dc]
mov edi, ebp
mov dword [esp + 0xac], eax
fst qword [esp + 0x40]
cvttsd2si ecx, qword [esp + 0x40]
test ecx, ecx
je 0x59225c
mov dword [esp + 0x40], ecx
fild dword [esp + 0x40]
mov edi, ebp
fsubp st(1)
add edx, 1
add ecx, 0x30
mov byte [edx - 1], cl
mov eax, dword [esp + 0xac]
cmp eax, esi
jne 0x592230
mov eax, edi
mov ebp, dword [esp + 0x80]
test al, al
fcmove st(0), st(1)
fstp st(1)
fld dword [0x5a86ec]
fld st(2)
fadd st(1)
fxch st(2)
fcomi st(2)
fstp st(2)
ja 0x5927f3
fsubrp st(2)
fxch st(1)
fcompi st(1)
ja 0x59291a
fstp st(0)
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
mov edi, dword [esp + 0x68]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
test edi, edi
js 0x5928a2
mov eax, dword [esp + 0x38]
mov esi, dword [eax + 0x14]
test esi, esi
js 0x5928a2
fld qword [0x5a8720]
mov dword [esp + 0x58], 0
fld qword [esp + 0x40]
mov esi, dword [esp + 0x6c]
mov dword [esp + 0xac], 1
lea edx, [esi + 1]
fld st(0)
fdiv st(2)
fstp qword [esp + 0x20]
cvttsd2si eax, qword [esp + 0x20]
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
lea ecx, [eax + 0x30]
mov byte [esi], cl
mov esi, dword [esp + 0x74]
fmul st(2)
add esi, 1
mov dword [esp + 0x64], esi
fsubp st(1)
fldz
fxch st(1)
fucomi st(1)
fstp st(1)
jp 0x592348
lea esi, [esi]
lea esi, [esi]
jne 0x592348
fstp st(0)
fstp st(0)
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x6c], edx
jmp 0x591abf
mov ecx, dword [esp + 0xac]
mov esi, dword [esp + 0x48]
cmp ecx, esi
je 0x5925f6
fmul dword [0x5a86dc]
add ecx, 1
add edx, 1
mov dword [esp + 0xac], ecx
fld st(0)
fdiv st(2)
fstp qword [esp + 0x20]
cvttsd2si eax, qword [esp + 0x20]
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
lea ecx, [eax + 0x30]
mov byte [edx - 1], cl
fmul st(2)
fsubp st(1)
fldz
fxch st(1)
fucomi st(1)
fstp st(1)
jnp 0x592330
jmp 0x592348
mov eax, dword [esp + 0x50]
jmp 0x591e2d
mov ecx, dword [esp + 0x6c]
jmp 0x5923b8
cmp ebx, ecx
je 0x592450
mov edi, ebx
lea ebx, [ebx - 1]
movzx eax, byte [edi - 1]
cmp al, 0x39
je 0x5923b0
add eax, 1
mov dword [esp + 0x60], 0x20
mov byte [ebx], al
jmp 0x591fb0
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x6c], edi
jmp 0x591abf
mov esi, dword [esp + 0x48]
mov ecx, dword [esp + 0x70]
mov edx, eax
mov edi, dword [esp + 0x78]
add dword [esp + 0x64], esi
mov dword [esp + 0xac], esi
add esi, ecx
sub edx, edi
mov dword [esp + 0x70], esi
mov edi, ecx
add dword [esp + 0x50], edx
xor edx, edx
mov dword [esp + 0x78], eax
jmp 0x591c00
cmp ebx, 1
jne 0x592163
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 4]
add eax, 1
cmp dword [esp + 0x2c], eax
jle 0x592163
add dword [esp + 0x70], 1
add dword [esp + 0x64], 1
mov dword [esp + 0x50], 1
jmp 0x59216b
mov eax, dword [esp + 0x6c]
add dword [esp + 0x64], 1
mov dword [esp + 0x60], 0x20
mov byte [eax], 0x31
jmp 0x591fb0
mov dword [esp + 4], edx
mov dword [esp], esi
mov dword [esp + 0x68], edx
call fcn.00593170
mov dword [esp + 4], ebp
mov dword [esp], eax
mov esi, eax
call fcn.00592ff0
mov dword [esp], ebp
mov dword [esp + 0x40], eax
call fcn.00592df0
mov edx, dword [esp + 0x68]
sub dword [esp + 0x78], edx
mov ebp, dword [esp + 0x40]
je 0x591c6e
jmp 0x591c5c
mov dword [esp], ebp
mov dword [esp + 4], 1
mov dword [esp + 0x20], edx
mov dword [esp + 0x28], ecx
call fcn.005932f0
mov ebp, eax
mov eax, dword [esp + 0x40]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.00593430
mov edx, dword [esp + 0x20]
test eax, eax
jg 0x5923a9
jne 0x5924ef
mov ecx, dword [esp + 0x28]
and ecx, 1
jne 0x5923a9
cmp dword [ebp + 0x10], 1
mov dword [esp + 0x60], 0x10
jg 0x592130
mov eax, dword [ebp + 0x14]
jmp 0x59211d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esp + 0x38]
test ebx, ebx
je 0x592755
cmp dword [ebp + 0x10], 1
jle 0x592988
cmp dword [esp + 0x58], 2
je 0x5927a9
mov ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0x30]
mov dword [esp + 0x20], ecx
jmp 0x5925ae
movzx eax, byte [esp + 0x20]
mov dword [esp + 0x2c], ecx
mov byte [ecx - 1], al
mov dword [esp], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0xa
call fcn.00592e60
mov dword [esp], ebp
cmp esi, ebx
mov dword [esp + 8], 0
cmove esi, eax
mov dword [esp + 4], 0xa
mov dword [esp + 0x28], eax
call fcn.00592e60
mov ebp, eax
mov eax, dword [esp + 0x40]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.00591070
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x28]
add eax, 0x30
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.00593430
lea ecx, [edi + 1]
test eax, eax
jg 0x592548
mov dword [esp + 0x30], edi
mov edi, ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x2c], ebx
cmp ecx, 0x39
je 0x5929f1
mov dword [esp + 0x60], 0x20
mov edx, esi
add ecx, 1
mov esi, ebx
mov eax, dword [esp + 0x30]
mov byte [eax], cl
jmp 0x591fb0
mov edi, dword [esp + 0x58]
test edi, edi
je 0x592839
fstp st(0)
fstp st(0)
cmp edi, 1
je 0x59293d
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x60], 0x10
mov dword [esp + 0x6c], edx
jmp 0x591abf
test esi, esi
je 0x591af9
mov esi, dword [esp + 0x8c]
test esi, esi
jle 0x591b57
fmul dword [0x5a86dc]
fst qword [esp + 0x98]
mov eax, dword [esp + 0x98]
mov edx, dword [esp + 0x9c]
fmul dword [0x5a86e0]
fadd dword [0x5a86e4]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
fstp qword [esp + 0x90]
mov eax, dword [esp + 0x90]
mov dword [esp + 0x90], 0xffffffff
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x94]
sub eax, 0x3400000
mov dword [esp + 0x84], eax
jmp 0x5917e5
mov eax, dword [esi + 4]
mov dword [esp], eax
call fcn.00592d10
lea ecx, [eax + 0xc]
mov ebx, eax
mov eax, dword [esi + 0x10]
mov dword [esp], ecx
lea edx, [eax*4 + 8]
lea eax, [esi + 0xc]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call fcn.00594340
mov dword [esp + 4], 1
mov dword [esp], ebx
call fcn.005932f0
mov dword [esp + 0x2c], eax
jmp 0x591e0b
fstp st(0)
fstp st(0)
mov dword [esp + 0x64], 2
mov ebx, dword [esp + 0x6c]
xor esi, esi
mov dword [esp + 0x40], 0
jmp 0x591a97
mov ecx, dword [esp + 0x38]
cmp ecx, 0x39
je 0x5929f1
mov eax, dword [esp + 0x30]
add ecx, 1
mov edx, esi
mov dword [esp + 0x60], 0x20
mov esi, dword [esp + 0x2c]
mov byte [eax], cl
jmp 0x591fb0
mov edx, esi
mov ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x2c]
jmp 0x5920f1
add dword [esp + 0x90], 1
mov ecx, 0x31
mov dword [esp + 0x6c], edx
jmp 0x5918cd
test eax, eax
jle 0x59279f
mov dword [esp], ebp
mov dword [esp + 4], 1
mov dword [esp + 0x20], ecx
call fcn.005932f0
mov ebp, eax
mov eax, dword [esp + 0x40]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.00593430
mov ecx, dword [esp + 0x20]
test eax, eax
jle 0x592a09
cmp ecx, 0x39
je 0x592a39
mov dword [esp + 0x58], 0x20
lea ecx, [edi + 0x31]
cmp dword [ebp + 0x10], 1
jle 0x5929ad
mov eax, dword [esp + 0x30]
mov edx, esi
mov dword [esp + 0x60], 0x10
mov esi, dword [esp + 0x2c]
lea edi, [eax + 1]
jmp 0x5925eb
mov dword [esp + 0x8c], 0xffffffff
mov dword [esp + 0x48], 0xffffffff
jmp 0x591b90
mov eax, dword [esp + 0x38]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x48], eax
jmp 0x591d17
fstp st(0)
fstp st(0)
fstp st(0)
mov ebx, dword [esp + 0x6c]
jmp 0x5918be
fstp st(0)
fldz
xor eax, eax
mov ecx, 1
mov ebx, dword [esp + 0x6c]
fucompi st(1)
fstp st(0)
mov dword [esp + 0x6c], edx
setp al
cmovne eax, ecx
shl eax, 4
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x90]
add eax, 1
mov dword [esp + 0x64], eax
jmp 0x591abf
fadd st(0)
movzx ecx, byte [edx - 1]
fcomi st(1)
ja 0x5929d2
fucompi st(1)
fstp st(0)
mov ebx, dword [esp + 0x6c]
jp 0x592a21
jne 0x592a21
test al, 1
mov eax, dword [esp + 0x74]
mov dword [esp + 0x90], eax
jne 0x5918be
mov dword [esp + 0x60], 0x10
lea esi, [esi]
lea esi, [esi]
mov eax, edx
lea edx, [edx - 1]
cmp byte [eax - 1], 0x30
je 0x592880
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x90]
add eax, 1
mov dword [esp + 0x64], eax
jmp 0x591abf
mov dword [esp + 0x58], 0
mov edx, dword [esp + 0x78]
xor esi, esi
mov edi, dword [esp + 0x70]
jmp 0x591c1e
mov dword [esp], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 0xa
mov byte [esp + 0x2c], dl
call fcn.00592e60
movzx edx, byte [esp + 0x2c]
mov esi, eax
test dl, dl
jne 0x5927db
mov eax, dword [esp + 0x74]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x48], eax
jmp 0x591de7
mov esi, dword [esp + 0x70]
mov eax, edi
add dword [esp + 0x64], edi
mov dword [esp + 0xac], edi
add eax, esi
mov edi, esi
mov dword [esp + 0x70], eax
jmp 0x591c00
fldz
xor eax, eax
mov ecx, 1
mov ebx, dword [esp + 0x6c]
fucompi st(1)
fstp st(0)
setp al
cmovne eax, ecx
shl eax, 4
mov dword [esp + 0x60], eax
jmp 0x592880
mov eax, dword [esp + 0x74]
movzx ecx, byte [edx - 1]
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x90], eax
jmp 0x5918be
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x78]
lea eax, [esi - 1]
cmp edi, eax
jl 0x5923e4
sub edi, eax
mov eax, dword [esp + 0x70]
add dword [esp + 0x64], esi
mov edx, edi
mov dword [esp + 0xac], esi
mov edi, eax
add eax, esi
mov dword [esp + 0x70], eax
jmp 0x591c00
mov edx, dword [ebp + 0x14]
test edx, edx
jne 0x59252a
test eax, eax
jg 0x592759
mov eax, dword [esp + 0x30]
mov edx, esi
mov esi, dword [esp + 0x2c]
lea edi, [eax + 1]
jmp 0x5925eb
mov ebx, dword [ebp + 0x14]
mov edx, esi
mov esi, dword [esp + 0x2c]
test ebx, ebx
je 0x592a48
mov eax, dword [esp + 0x30]
mov dword [esp + 0x60], 0x10
lea edi, [eax + 1]
jmp 0x5925eb
fstp st(0)
fstp st(0)
mov eax, dword [esp + 0x74]
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x90], eax
jmp 0x5918be
mov eax, dword [esp + 0x30]
lea edi, [eax + 1]
mov edx, esi
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x6c]
mov ebx, edi
mov byte [eax], 0x39
jmp 0x5923b8
jne 0x592a14
test cl, 1
jne 0x59278b
mov dword [esp + 0x58], 0x20
jmp 0x59279f
mov eax, dword [esp + 0x74]
mov dword [esp + 0x60], 0x10
mov dword [esp + 0x90], eax
jmp 0x592880
mov eax, dword [esp + 0x30]
mov edx, esi
mov esi, dword [esp + 0x2c]
lea edi, [eax + 1]
jmp 0x5929f7
mov eax, dword [esp + 0x58]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x30]
lea edi, [eax + 1]
jmp 0x5925eb
cmp dword [ebp + 0x10], 1
mov dword [esp + 0x60], 0x10
jg 0x591f9d
xor eax, eax
cmp dword [ebp + 0x14], 0
setne al
shl eax, 4
mov dword [esp + 0x60], eax
jmp 0x591f9d