Function at 0x590660
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 0x590420
mov eax, 4
xor edi, edi
nop
add eax, eax
add edi, 1
lea edx, [eax + 0xf]
cmp ecx, edx
jg 0x5903d0
mov dword [esp], edi
call fcn.00592100
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 0x59040f
lea esi, [esi]
nop
movzx ecx, byte [edx]
add eax, 1
add edx, 1
mov byte [eax], cl
test cl, cl
jne 0x590400
test ebx, ebx
je 0x590415
mov dword [ebx], eax
add esp, 0x10
mov eax, edi
pop ebx
pop esi
pop edi
ret
xor edi, edi
jmp 0x5903dc
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 0x590980
mov edi, esi
and edi, 4
mov dword [esp + 0x60], edi
jne 0x5908f8
test eax, eax
je 0x590948
mov edi, dword [edx]
mov eax, 0x20
xor edx, edx
cmp edi, 0x20
jle 0x590709
add eax, eax
add edx, 1
cmp edi, eax
jg 0x590700
mov dword [esp], edx
lea ebx, [edi - 1]
sar ebx, 5
call fcn.00592100
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 0x590730
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 0x590770
test ebx, ebx
je 0x5909c0
mov eax, ebx
sub ebx, 1
mov edx, dword [ebp + ebx*4 + 0x14]
test edx, edx
je 0x590768
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.00591fb0
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0xac], eax
mov dword [esp + 0x68], ecx
test eax, eax
jne 0x5909d0
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x590940
lea eax, [esp + 0xac]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.00592aa0
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 [0x5a7608]
lea ecx, [eax - 1]
mov eax, 1
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x58]
fmul qword [0x5a7610]
fadd qword [0x5a7618]
mov dword [esp + 0x50], ecx
sub eax, edx
fild dword [esp + 0x50]
test ecx, ecx
fmul qword [0x5a7620]
cmovns eax, ecx
sub eax, 0x435
faddp st(1)
test eax, eax
jle 0x59084c
mov dword [esp + 0x50], eax
fild dword [esp + 0x50]
fmul qword [0x5a7628]
faddp st(1)
fst qword [esp + 0x50]
cvttsd2si eax, qword [esp + 0x50]
fldz
fcompi st(1)
mov dword [esp + 0x50], eax
ja 0x590d78
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 0x5909f8
fld qword [ecx*8 + 0x5a7680]
fst qword [esp + 0x48]
fld qword [esp + 0x40]
fxch st(1)
fcompi st(1)
fstp st(0)
ja 0x590de0
mov dword [esp + 0x88], 0
mov dword [esp + 0x70], 0
test eax, eax
jg 0x5908d8
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 0x590a4e
xor ebx, ebx
cmp eax, 4
jne 0x590970
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], 0x5a7601
add esp, 0xbc
pop ebx
pop esi
pop edi
pop ebp
jmp 0x5903b0
mov dword [esp], ebp
call fcn.005921e0
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], 0x5a7605
call 0x5903b0
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], 0x5a75f8
add esp, 0xbc
pop ebx
pop esi
pop edi
pop ebp
jmp 0x5903b0
mov dword [ebp + 0x10], 0
jmp 0x59078f
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.00591e80
mov eax, dword [esp + 0xac]
mov edx, dword [esp + 0x2c]
add edx, eax
sub ebx, eax
mov dword [esp + 0x68], edx
jmp 0x5907ae
mov dword [esp + 0x88], 1
mov edx, dword [esp + 0x64]
mov dword [esp + 0x70], 0
test edx, edx
jns 0x590a26
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 0x5908d8
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 0x590ce0
cmp eax, 5
jg 0x590d98
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 0x591153
cmp eax, 5
je 0x5915ec
mov dword [esp + 0x7c], 0
cmp eax, 2
je 0x59115b
cmp eax, 3
jne 0x590d03
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.00590370
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 0xc]
sub eax, 1
mov dword [esp + 0x58], eax
je 0x590b1e
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 0x590f68
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 0x590f68
mov eax, dword [esp + 0x74]
or eax, dword [esp + 0x58]
jne 0x590f68
movsd xmm0, qword [esp + 0x40]
mov eax, dword [esp + 0x88]
mov dword [esp + 0xac], 0
movsd qword [esp + 0x58], xmm0
test eax, eax
je 0x590b77
fld qword [esp + 0x58]
fld1
fcompi st(1)
ja 0x591a14
fstp st(0)
fld qword [esp + 0x58]
fadd st(0)
fadd dword [0x5a7644]
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 0x590f16
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 + 0x5a7678]
test eax, eax
je 0x5915f9
fdivr dword [0x5a764c]
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 0x590c7c
fstp st(0)
jmp 0x591bf4
mov eax, dword [esp + 0xac]
add eax, 1
mov dword [esp + 0xac], eax
cmp eax, esi
jge 0x590f41
fld dword [0x5a763c]
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 0x591bf2
fld st(1)
fsubr dword [0x5a7638]
fxch st(1)
fcomi st(1)
fstp st(1)
jbe 0x590c30
fstp st(0)
fstp st(0)
movzx ecx, byte [edx - 1]
mov ebx, dword [esp + 0x6c]
jmp 0x590cae
cmp eax, ebx
je 0x591b2f
movzx ecx, byte [eax - 1]
mov edx, eax
lea eax, [edx - 1]
cmp cl, 0x39
je 0x590ca0
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 0x590eaf
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 [0x5a7630]
fstp qword [esp + 0x30]
cvttsd2si eax, qword [esp + 0x30]
add eax, 3
mov dword [esp], eax
mov dword [esp + 0xac], eax
call fcn.00590370
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 0x590df5
mov dword [esp + 0x30], 0
mov dword [esp + 0x7c], 1
mov dword [esp + 0x8c], 0xffffffff
mov dword [esp + 0x48], 0xffffffff
jmp 0x590af6
fild dword [esp + 0x50]
fucompi st(1)
fstp st(0)
jp 0x590d88
je 0x590866
sub dword [esp + 0x50], 1
jmp 0x590866
mov dword [esp + 0x80], 0
sub eax, 4
mov dword [esp + 0x20], eax
cmp eax, 4
je 0x591153
cmp eax, 5
je 0x5915ec
mov dword [esp + 0x7c], 0
cmp eax, 2
je 0x59115b
mov dword [esp + 0x20], 3
jmp 0x590aaf
sub dword [esp + 0x50], 1
mov dword [esp + 0x88], 0
jmp 0x590a03
mov eax, dword [esp + 0x68]
mov dword [esp + 0x30], 0
test eax, eax
js 0x591bb3
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 0x590f74
mov edx, dword [esp + 0x30]
fld qword [eax*8 + 0x5a7680]
test edx, edx
jns 0x5916cc
mov esi, dword [esp + 0x48]
test esi, esi
jg 0x5916cc
jne 0x59117f
fmul dword [0x5a7648]
fld qword [esp + 0x40]
fxch st(1)
fcompi st(1)
fstp st(0)
jae 0x591181
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.005921e0
test esi, esi
je 0x590eaf
mov dword [esp], esi
call fcn.005921e0
mov dword [esp], ebp
call fcn.005921e0
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 0x590ed2
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 [0x5a7644]
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 [0x5a7648]
fld qword [esp + 0x80]
fxch st(1)
fcomi st(1)
ja 0x591ad8
fxch st(1)
fchs
fcompi st(1)
fstp st(0)
ja 0x591181
jmp 0x590f49
fstp st(0)
fstp st(0)
jmp 0x590f49
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 0x590e28
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x5911b0
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 0x5915a8
mov edi, dword [esp + 0x20]
lea eax, [edi - 3]
and eax, 0xfffffffd
je 0x5915b3
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 0x590fdc
cmp eax, esi
jg 0x591d45
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.00592330
mov dword [esp + 0x7c], 1
mov edx, dword [esp + 0x40]
mov esi, eax
test edi, edi
jle 0x591034
mov ecx, dword [esp + 0x64]
test ecx, ecx
jle 0x591034
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 0x59105e
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x59104c
test edx, edx
jne 0x591859
mov eax, dword [esp + 0x78]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.00592560
mov ebp, eax
mov dword [esp], 1
call fcn.00592330
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x50]
test eax, eax
jne 0x591530
cmp dword [esp + 0x20], 1
jle 0x591570
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 0x5910be
mov dword [esp], ebp
mov dword [esp + 4], edx
call fcn.005926e0
mov ebp, eax
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0x64]
add ecx, eax
test ecx, ecx
jle 0x5910dc
mov eax, dword [esp + 0x40]
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.005926e0
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x88]
cmp dword [esp + 0x20], 2
setg dl
test eax, eax
jne 0x5913f0
mov eax, dword [esp + 0x48]
test eax, eax
jg 0x5911c0
test dl, dl
je 0x5911c0
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x59118b
mov eax, dword [esp + 0x40]
mov dword [esp + 8], 0
mov dword [esp + 4], 5
mov dword [esp], eax
call fcn.00592250
mov dword [esp], ebp
mov dword [esp + 4], eax
mov dword [esp + 0x40], eax
call fcn.00592820
test eax, eax
jle 0x59118b
mov eax, dword [esp + 0x74]
mov ebx, dword [esp + 0x6c]
add eax, 2
mov dword [esp + 0x64], eax
jmp 0x590e87
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 0x590ad3
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 0x590e97
mov edx, dword [esp + 0x78]
mov edi, dword [esp + 0x70]
xor esi, esi
jmp 0x59100e
mov eax, dword [esp + 0x74]
add eax, 1
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x591470
add ebx, edi
test ebx, ebx
jle 0x5911eb
mov dword [esp], esi
mov dword [esp + 4], ebx
call fcn.005926e0
mov esi, eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x2c], esi
test eax, eax
jne 0x591a92
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x30], eax
mov eax, 1
jmp 0x5912d7
mov dword [esp], edx
call fcn.005921e0
mov eax, 1
test ebx, ebx
js 0x591900
or ebx, dword [esp + 0x20]
jne 0x591238
mov edx, dword [esp + 0x28]
test byte [edx], 1
je 0x591900
mov edi, dword [esp + 0x30]
add edi, 1
mov ebx, edi
test eax, eax
jle 0x591250
cmp dword [esp + 0x58], 2
jne 0x591af7
movzx eax, byte [esp + 0x38]
mov byte [edi - 1], al
mov eax, dword [esp + 0x48]
cmp dword [esp + 0xac], eax
je 0x591b20
mov dword [esp], ebp
mov dword [esp + 8], 0
mov dword [esp + 4], 0xa
call fcn.00592250
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 0x5913e0
call fcn.00592250
mov dword [esp + 8], 0
mov esi, eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], 0xa
mov dword [esp], eax
call fcn.00592250
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.00590460
mov dword [esp + 4], esi
mov dword [esp], ebp
lea ecx, [eax + 0x30]
mov edi, eax
mov dword [esp + 0x38], ecx
call fcn.00592820
mov ecx, dword [esp + 0x2c]
mov ebx, eax
mov eax, dword [esp + 0x40]
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.00592870
mov edx, eax
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x591210
mov dword [esp + 4], edx
mov dword [esp], ebp
mov dword [esp + 0x68], edx
call fcn.00592820
mov edx, dword [esp + 0x68]
mov dword [esp + 0x50], eax
mov dword [esp], edx
call fcn.005921e0
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x20]
or eax, edx
jne 0x591790
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
mov dword [esp + 0x50], edx
and edx, 1
or edx, dword [esp + 0x58]
jne 0x59121d
mov ecx, dword [esp + 0x38]
cmp ecx, 0x39
je 0x591dda
test ebx, ebx
jle 0x591e4c
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.005921e0
test esi, esi
je 0x5917c7
mov edx, dword [esp + 0x20]
test edx, edx
je 0x5913cc
cmp edx, esi
je 0x5913cc
mov dword [esp], edx
call fcn.005921e0
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x6c], edi
jmp 0x590ea7
call fcn.00592250
mov dword [esp + 0x2c], eax
mov esi, eax
jmp 0x5912c9
mov eax, dword [esp + 0x40]
mov dword [esp], ebp
mov byte [esp + 0x2c], dl
mov dword [esp + 4], eax
call fcn.00592820
movzx edx, byte [esp + 0x2c]
test eax, eax
jns 0x5910f3
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.00592250
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 0x591ca9
test dl, dl
jne 0x591bcb
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 0x5914b4
mov dword [esp], ebp
mov dword [esp + 8], 0
mov dword [esp + 4], 0xa
call fcn.00592250
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.00590460
add eax, 0x30
mov byte [ebx - 1], al
cmp dword [esp + 0xac], esi
jl 0x591490
mov esi, dword [esp + 0x20]
mov ecx, eax
xor edx, edx
mov edi, dword [esp + 0x58]
test edi, edi
je 0x59189a
mov eax, dword [ebp + 0x10]
cmp edi, 2
je 0x5918df
cmp eax, 1
jg 0x591799
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x591799
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 0x591520
jmp 0x5913a0
mov eax, dword [esp + 0x50]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call fcn.00592560
cmp dword [esp + 0x20], 1
mov dword [esp + 0x40], eax
jle 0x591806
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 0x59108a
cmp ebx, 1
jne 0x591085
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 4]
add eax, 1
cmp dword [esp + 0x2c], eax
jle 0x591085
add dword [esp + 0x70], 1
add dword [esp + 0x64], 1
mov dword [esp + 0x50], 1
jmp 0x591085
cmp dword [esp + 0x20], 1
jle 0x590fdc
mov edi, dword [esp + 0x48]
mov esi, dword [esp + 0x78]
lea eax, [edi - 1]
cmp esi, eax
jl 0x5917d4
mov edx, esi
sub edx, eax
test edi, edi
jns 0x591cec
mov edi, dword [esp + 0x70]
mov eax, dword [esp + 0x48]
mov dword [esp + 0xac], 0
sub edi, eax
jmp 0x590ff0
mov dword [esp + 0x7c], 1
jmp 0x590aaf
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 0x591632
add eax, 1
fmul dword [0x5a763c]
mov edi, ebp
mov dword [esp + 0xac], eax
fst qword [esp + 0x40]
cvttsd2si ecx, qword [esp + 0x40]
test ecx, ecx
je 0x59164c
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 0x591620
mov eax, edi
mov ebp, dword [esp + 0x80]
test al, al
fcmove st(0), st(1)
fstp st(1)
fld dword [0x5a764c]
fld st(2)
fadd st(1)
fxch st(2)
fcomi st(2)
fstp st(2)
ja 0x591be3
fsubrp st(2)
fxch st(1)
fcompi st(1)
ja 0x591d0a
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 0x591c92
mov eax, dword [esp + 0x38]
mov esi, dword [eax + 0x14]
test esi, esi
js 0x591c92
fld qword [0x5a7680]
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 0x591738
lea esi, [esi]
lea esi, [esi]
jne 0x591738
fstp st(0)
fstp st(0)
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x6c], edx
jmp 0x590eaf
mov ecx, dword [esp + 0xac]
mov esi, dword [esp + 0x48]
cmp ecx, esi
je 0x5919e6
fmul dword [0x5a763c]
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 0x591720
jmp 0x591738
mov eax, dword [esp + 0x50]
jmp 0x59121d
mov ecx, dword [esp + 0x6c]
jmp 0x5917a8
cmp ebx, ecx
je 0x591840
mov edi, ebx
lea ebx, [ebx - 1]
movzx eax, byte [edi - 1]
cmp al, 0x39
je 0x5917a0
add eax, 1
mov dword [esp + 0x60], 0x20
mov byte [ebx], al
jmp 0x5913a0
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x6c], edi
jmp 0x590eaf
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 0x590ff0
cmp ebx, 1
jne 0x591553
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 4]
add eax, 1
cmp dword [esp + 0x2c], eax
jle 0x591553
add dword [esp + 0x70], 1
add dword [esp + 0x64], 1
mov dword [esp + 0x50], 1
jmp 0x59155b
mov eax, dword [esp + 0x6c]
add dword [esp + 0x64], 1
mov dword [esp + 0x60], 0x20
mov byte [eax], 0x31
jmp 0x5913a0
mov dword [esp + 4], edx
mov dword [esp], esi
mov dword [esp + 0x68], edx
call fcn.00592560
mov dword [esp + 4], ebp
mov dword [esp], eax
mov esi, eax
call fcn.005923e0
mov dword [esp], ebp
mov dword [esp + 0x40], eax
call fcn.005921e0
mov edx, dword [esp + 0x68]
sub dword [esp + 0x78], edx
mov ebp, dword [esp + 0x40]
je 0x59105e
jmp 0x59104c
mov dword [esp], ebp
mov dword [esp + 4], 1
mov dword [esp + 0x20], edx
mov dword [esp + 0x28], ecx
call fcn.005926e0
mov ebp, eax
mov eax, dword [esp + 0x40]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.00592820
mov edx, dword [esp + 0x20]
test eax, eax
jg 0x591799
jne 0x5918df
mov ecx, dword [esp + 0x28]
and ecx, 1
jne 0x591799
cmp dword [ebp + 0x10], 1
mov dword [esp + 0x60], 0x10
jg 0x591520
mov eax, dword [ebp + 0x14]
jmp 0x59150d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esp + 0x38]
test ebx, ebx
je 0x591b45
cmp dword [ebp + 0x10], 1
jle 0x591d78
cmp dword [esp + 0x58], 2
je 0x591b99
mov ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0x30]
mov dword [esp + 0x20], ecx
jmp 0x59199e
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.00592250
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.00592250
mov ebp, eax
mov eax, dword [esp + 0x40]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.00590460
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.00592820
lea ecx, [edi + 1]
test eax, eax
jg 0x591938
mov dword [esp + 0x30], edi
mov edi, ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x2c], ebx
cmp ecx, 0x39
je 0x591de1
mov dword [esp + 0x60], 0x20
mov edx, esi
add ecx, 1
mov esi, ebx
mov eax, dword [esp + 0x30]
mov byte [eax], cl
jmp 0x5913a0
mov edi, dword [esp + 0x58]
test edi, edi
je 0x591c29
fstp st(0)
fstp st(0)
cmp edi, 1
je 0x591d2d
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x60], 0x10
mov dword [esp + 0x6c], edx
jmp 0x590eaf
test esi, esi
je 0x590ee9
mov esi, dword [esp + 0x8c]
test esi, esi
jle 0x590f47
fmul dword [0x5a763c]
fst qword [esp + 0x98]
mov eax, dword [esp + 0x98]
mov edx, dword [esp + 0x9c]
fmul dword [0x5a7640]
fadd dword [0x5a7644]
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 0x590bd5
mov eax, dword [esi + 4]
mov dword [esp], eax
call fcn.00592100
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.00593730
mov dword [esp + 4], 1
mov dword [esp], ebx
call fcn.005926e0
mov dword [esp + 0x2c], eax
jmp 0x5911fb
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 0x590e87
mov ecx, dword [esp + 0x38]
cmp ecx, 0x39
je 0x591de1
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 0x5913a0
mov edx, esi
mov ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x2c]
jmp 0x5914e1
add dword [esp + 0x90], 1
mov ecx, 0x31
mov dword [esp + 0x6c], edx
jmp 0x590cbd
test eax, eax
jle 0x591b8f
mov dword [esp], ebp
mov dword [esp + 4], 1
mov dword [esp + 0x20], ecx
call fcn.005926e0
mov ebp, eax
mov eax, dword [esp + 0x40]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.00592820
mov ecx, dword [esp + 0x20]
test eax, eax
jle 0x591df9
cmp ecx, 0x39
je 0x591e29
mov dword [esp + 0x58], 0x20
lea ecx, [edi + 0x31]
cmp dword [ebp + 0x10], 1
jle 0x591d9d
mov eax, dword [esp + 0x30]
mov edx, esi
mov dword [esp + 0x60], 0x10
mov esi, dword [esp + 0x2c]
lea edi, [eax + 1]
jmp 0x5919db
mov dword [esp + 0x8c], 0xffffffff
mov dword [esp + 0x48], 0xffffffff
jmp 0x590f80
mov eax, dword [esp + 0x38]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x48], eax
jmp 0x591107
fstp st(0)
fstp st(0)
fstp st(0)
mov ebx, dword [esp + 0x6c]
jmp 0x590cae
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 0x590eaf
fadd st(0)
movzx ecx, byte [edx - 1]
fcomi st(1)
ja 0x591dc2
fucompi st(1)
fstp st(0)
mov ebx, dword [esp + 0x6c]
jp 0x591e11
jne 0x591e11
test al, 1
mov eax, dword [esp + 0x74]
mov dword [esp + 0x90], eax
jne 0x590cae
mov dword [esp + 0x60], 0x10
lea esi, [esi]
lea esi, [esi]
mov eax, edx
lea edx, [edx - 1]
cmp byte [eax - 1], 0x30
je 0x591c70
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x90]
add eax, 1
mov dword [esp + 0x64], eax
jmp 0x590eaf
mov dword [esp + 0x58], 0
mov edx, dword [esp + 0x78]
xor esi, esi
mov edi, dword [esp + 0x70]
jmp 0x59100e
mov dword [esp], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 0xa
mov byte [esp + 0x2c], dl
call fcn.00592250
movzx edx, byte [esp + 0x2c]
mov esi, eax
test dl, dl
jne 0x591bcb
mov eax, dword [esp + 0x74]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x48], eax
jmp 0x5911d7
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 0x590ff0
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 0x591c70
mov eax, dword [esp + 0x74]
movzx ecx, byte [edx - 1]
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x90], eax
jmp 0x590cae
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x78]
lea eax, [esi - 1]
cmp edi, eax
jl 0x5917d4
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 0x590ff0
mov edx, dword [ebp + 0x14]
test edx, edx
jne 0x59191a
test eax, eax
jg 0x591b49
mov eax, dword [esp + 0x30]
mov edx, esi
mov esi, dword [esp + 0x2c]
lea edi, [eax + 1]
jmp 0x5919db
mov ebx, dword [ebp + 0x14]
mov edx, esi
mov esi, dword [esp + 0x2c]
test ebx, ebx
je 0x591e38
mov eax, dword [esp + 0x30]
mov dword [esp + 0x60], 0x10
lea edi, [eax + 1]
jmp 0x5919db
fstp st(0)
fstp st(0)
mov eax, dword [esp + 0x74]
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x90], eax
jmp 0x590cae
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 0x5917a8
jne 0x591e04
test cl, 1
jne 0x591b7b
mov dword [esp + 0x58], 0x20
jmp 0x591b8f
mov eax, dword [esp + 0x74]
mov dword [esp + 0x60], 0x10
mov dword [esp + 0x90], eax
jmp 0x591c70
mov eax, dword [esp + 0x30]
mov edx, esi
mov esi, dword [esp + 0x2c]
lea edi, [eax + 1]
jmp 0x591de7
mov eax, dword [esp + 0x58]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x30]
lea edi, [eax + 1]
jmp 0x5919db
cmp dword [ebp + 0x10], 1
mov dword [esp + 0x60], 0x10
jg 0x59138d
xor eax, eax
cmp dword [ebp + 0x14], 0
setne al
shl eax, 4
mov dword [esp + 0x60], eax
jmp 0x59138d