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

Disassembly:
push ebp
xor edx, edx
xor eax, eax
push edi
fldz
xor ecx, ecx
push esi
xor ebp, ebp
xor esi, esi
push ebx
sub esp, 0xfc
xor ebx, ebx
mov dword [esp + 0xec], edx
mov edx, dword [esp + 0x118]
mov edi, dword [esp + 0x110]
mov dword [esp + 0x84], eax
mov eax, dword [edx]
mov dword [esp + 0xf4], ecx
mov ecx, edi
mov dword [esp + 0x80], ebp
mov dword [esp + 0x74], esi
mov dword [esp + 0xa4], ebx
fstp qword [esp + 0xd8]
mov dword [esp + 0x90], eax
mov dword [esp + 0xf0], edi
movsx eax, byte [ecx]
cmp eax, 0x2d
ja case.0x4776e2.1
jmp dword [eax*4 + 0x53ee10]
mov ebx, 1
mov dword [esp + 0x74], ebx
mov esi, ecx
inc ecx
mov dword [esp + 0xf0], ecx
cmp byte [esi + 1], 0
jne case.0x4776e2.1
xor ecx, ecx
mov dword [esp + 0x74], ecx
mov dword [esp + 0xf0], edi
mov ebx, 6
mov dword [esp + 0xec], ebx
mov edx, dword [esp + 0xf4]
mov eax, dword [esp + 0x114]
test eax, eax
je 0x47773d
mov ecx, dword [esp + 0xf0]
mov esi, dword [esp + 0x114]
mov dword [esi], ecx
mov edi, dword [esp + 0x74]
test edi, edi
je 0x47774d
or dword [esp + 0xec], 8
test edx, edx
jne 0x4779e0
mov eax, dword [esp + 0xec]
add esp, 0xfc
pop ebx
pop esi
pop edi
pop ebp
ret
cmp byte [ecx], 0x30
je 0x4782f9
mov dword [esp + 0x6c], ecx
mov eax, dword [esp + 0x118]
xor ebx, ebx
mov dword [esp + 0x5c], ebx
xor esi, esi
xor edx, edx
mov dword [esp + 0x58], esi
mov ebp, dword [eax + 0x10]
xor eax, eax
mov dword [esp + 0x88], edx
mov dword [esp + 0x70], ebp
xor ebp, ebp
mov dword [esp + 0xa8], eax
movsx ebx, byte [ecx]
cmp ebx, 0x2f
jle 0x4777f0
lea esi, [esi]
cmp ebx, 0x39
jg 0x4777f0
cmp ebp, 8
jg 0x4779c0
mov eax, dword [esp + 0x5c]
lea esi, [eax + eax*4]
lea edx, [ebx + esi*2 - 0x30]
mov dword [esp + 0x5c], edx
mov edx, ecx
inc ecx
inc ebp
mov dword [esp + 0xf0], ecx
movsx ebx, byte [edx + 1]
cmp ebx, 0x2f
jg 0x4777b0
jmp 0x4777f0
mov dword [esp + 0x8c], ebp
cmp ebx, 0x2e
je 0x47833f
xor esi, esi
cmp ebx, 0x65
sete al
cmp ebx, 0x45
sete dl
or eax, edx
test al, 1
je 0x477900
mov ebx, dword [esp + 0x84]
or ebx, ebp
or ebx, dword [esp + 0x80]
je 0x477708
mov edi, ecx
lea eax, [edi + 1]
xor ecx, ecx
mov dword [esp + 0x9c], ecx
mov edx, eax
mov dword [esp + 0xf0], eax
movsx ebx, byte [edi + 1]
cmp ebx, 0x2b
je 0x4789be
cmp ebx, 0x2d
je 0x4789b2
lea eax, [ebx - 0x30]
cmp eax, 9
ja 0x478462
cmp ebx, 0x30
jne 0x47787f
mov esi, edx
inc edx
mov dword [esp + 0xf0], edx
movsx ebx, byte [esi + 1]
cmp ebx, 0x30
je 0x47786c
lea ecx, [ebx - 0x31]
xor esi, esi
cmp ecx, 8
ja 0x477900
lea eax, [edx + 1]
mov esi, edx
lea ecx, [ebx - 0x30]
mov dword [esp + 0xf0], eax
movsx ebx, byte [edx + 1]
cmp ebx, 0x2f
jle 0x4778ca
cmp ebx, 0x39
jg 0x4778ca
lea edx, [edx + 2]
mov dword [esp + 0xf0], edx
lea eax, [ecx + ecx*4]
lea ecx, [ebx + eax*2 - 0x30]
mov eax, edx
lea edx, [edx + 1]
movsx ebx, byte [edx - 1]
cmp ebx, 0x2f
jle 0x4778ca
cmp ebx, 0x39
jle 0x4778a9
sub eax, esi
cmp eax, 8
mov esi, 0x4e1f
setg al
cmp ecx, 0x4e1f
setg dl
or eax, edx
test al, 1
jne 0x4778e8
mov esi, ecx
mov ecx, dword [esp + 0x9c]
test ecx, ecx
je 0x477900
neg esi
lea esi, [esi]
lea edi, [edi]
test ebp, ebp
jne 0x477a1f
mov ebp, dword [esp + 0x84]
or ebp, dword [esp + 0x80]
jne 0x47771b
mov esi, dword [esp + 0xa8]
test esi, esi
jne 0x477708
cmp ebx, 0x4e
je 0x4784a5
jg 0x478493
cmp ebx, 0x49
jne 0x477708
mov ebx, 0x53edec
mov dword [esp + 4], ebx
lea ebx, [esp + 0xf0]
mov dword [esp], ebx
call fcn.0047ada0
test eax, eax
je 0x477708
dec dword [esp + 0xf0]
mov eax, 0x53edef
mov edi, 3
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.0047ada0
mov dword [esp + 0xec], edi
mov edx, dword [esp + 0xf0]
cmp eax, 1
mov edi, dword [esp + 0x118]
adc edx, 0
mov dword [esp + 0xf0], edx
mov edx, dword [edi + 8]
jmp 0x4784f8
inc ecx
mov dword [esp + 0xf0], ecx
jmp 0x4776d6
cmp ebp, 0xf
jg 0x4777cd
mov esi, dword [esp + 0x58]
lea eax, [esi + esi*4]
lea edx, [ebx + eax*2 - 0x30]
mov dword [esp + 0x58], edx
jmp 0x4777cd
mov dword [esp + 8], edx
mov ebx, dword [esp + 0x90]
mov ebp, dword [esp + 0x120]
mov dword [esp + 4], ebx
mov dword [esp], ebp
call fcn.0047adf0
mov edx, dword [esp + 0xf4]
mov dword [esp], edx
call fcn.00479420
mov eax, dword [esp + 0xec]
add esp, 0xfc
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [esp + 0x118]
mov ecx, 1
xor eax, eax
mov dword [esp + 0xec], ecx
mov edx, dword [esp + 0x88]
mov dword [esp + 0x7c], eax
mov eax, dword [edi + 0xc]
sub esi, edx
mov dword [esp + 0x3c], esi
and eax, 3
cmp eax, 2
je 0x4789dd
jg 0x47846e
test eax, eax
je 0x478485
mov eax, dword [esp + 0x8c]
test eax, eax
jne 0x477a74
mov dword [esp + 0x8c], ebp
cmp ebp, 0x10
mov ebx, ebp
jle 0x477a80
mov ebx, 0x10
mov ecx, dword [esp + 0x5c]
xor edx, edx
push edx
push ecx
fild qword [esp]
add esp, 8
cmp ebx, 9
jle 0x477aaa
fmul qword [ebx*8 + 0x53ee88]
xor eax, eax
mov edi, dword [esp + 0x58]
push eax
push edi
fild qword [esp]
add esp, 8
faddp st(1)
cmp dword [esp + 0x90], 0x35
setle cl
xor edx, edx
cmp ebp, 0xf
setle dl
test ecx, edx
je 0x478978
cmp dword [esp + 0x3c], 0
je 0x478b7b
jle 0x478c75
cmp dword [esp + 0x3c], 0x16
jg 0x478bc7
fst qword [esp + 0xe0]
mov eax, dword [esp + 0xe0]
test eax, eax
je 0x478cce
bsf eax, eax
mov edx, 0x35
mov edi, dword [esp + 0x3c]
sub edx, eax
mov eax, dword [esp + 0x7c]
lea esi, [esp + 0xec]
mov dword [esp + 0x1c], esi
mov ecx, dword [edi*4 + 0x53ed90]
fmul qword [edi*8 + 0x53eed0]
mov edi, dword [esp + 0x120]
add edx, ecx
mov dword [esp + 0x18], eax
cmp edx, 0x35
setle dl
mov dword [esp + 0x10], edi
movzx ecx, dl
mov edx, dword [esp + 0x11c]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x118]
fst qword [esp + 0xd8]
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
fstp qword [esp]
xor esi, esi
call fcn.004771a0
test eax, eax
jne 0x47771b
mov eax, ebp
sub eax, ebx
lea eax, [esi + eax]
xor esi, esi
test eax, eax
jle 0x478aa6
mov edx, eax
and edx, 0xf
je 0x477b9c
fld qword [edx*8 + 0x53eed0]
fmul qword [esp + 0xd8]
fstp qword [esp + 0xd8]
and eax, 0xfffffff0
je 0x478984
mov ecx, eax
lea ebx, [esp + 0xd8]
sar ecx, 4
cmp ecx, 0xf
jle 0x477bfe
fld qword [0x53eff0]
lea esi, [esi]
mov edi, dword [ebx + 4]
sub ecx, 0x10
mov edx, edi
and edi, 0x800fffff
and edx, 0x7ff00000
or edi, 0x3ff00000
mov dword [ebx + 4], edi
shr edx, 0x14
cmp ecx, 0xf
fld qword [esp + 0xd8]
lea esi, [edx + esi - 0x3ff]
fmul st(1)
fstp qword [esp + 0xd8]
jg 0x477bc0
fstp st(0)
mov edi, dword [ebx + 4]
mov eax, edi
and eax, 0x7ff00000
shr eax, 0x14
and edi, 0x800fffff
or edi, 0x3ff00000
mov dword [ebx + 4], edi
lea esi, [eax + esi - 0x3ff]
xor eax, eax
test ecx, ecx
jle 0x478984
fld qword [esp + 0xd8]
lea esi, [esi]
lea edi, [edi]
test cl, 1
je 0x477c53
fmul qword [eax*8 + 0x53efd0]
fst qword [esp + 0xd8]
sar ecx, 1
inc eax
test ecx, ecx
jg 0x477c40
fstp qword [esp]
lea ecx, [esp + 0xd4]
lea ebx, [esp + 0xd0]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ebx
call fcn.0047a840
mov dword [esp + 0xf4], eax
mov ecx, dword [esp + 0xd4]
mov edi, dword [esp + 0x90]
mov edx, dword [esp + 0xd0]
mov ebx, ecx
sub ebx, edi
add edx, esi
test ebx, ebx
mov esi, edx
jle 0x477cd3
mov dword [esp + 0xd0], edx
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.0047a990
mov edx, dword [esp + 0xd0]
mov esi, dword [esp + 0x90]
mov ecx, dword [esp + 0x90]
add edx, ebx
mov dword [esp + 0xd4], esi
mov esi, edx
mov edi, dword [esp + 0x90]
xor ebx, ebx
mov dword [esp + 0xb8], ebx
lea ebx, [esi + ecx]
sub ebx, edi
mov edi, dword [esp + 0x118]
mov eax, dword [edi + 8]
inc eax
cmp eax, ebx
jl 0x478a46
mov dword [esp + 0x78], ebx
mov eax, dword [edi + 4]
cmp eax, ebx
mov dword [esp + 0xa0], eax
jle 0x4789d1
sub esi, eax
mov edi, 1
test esi, esi
mov dword [esp + 0xa4], edi
jle 0x478c3c
mov dword [esp + 0xd0], edx
mov edx, dword [esp + 0xf4]
mov dword [esp + 4], esi
mov dword [esp], edx
call fcn.0047a290
add dword [esp + 0xd4], esi
mov dword [esp + 0xf4], eax
mov ecx, dword [esp + 0x70]
mov esi, dword [esp + 0xa0]
test ecx, ecx
mov dword [esp + 0x78], esi
mov dword [esp + 0xd0], esi
je 0x477d74
lea eax, [ebx + 1]
cmp eax, esi
jl 0x478f7a
mov dword [esp + 8], ebp
mov ecx, dword [esp + 0x5c]
mov esi, dword [esp + 0x8c]
mov ebp, dword [esp + 0x6c]
mov dword [esp + 0xc], ecx
mov dword [esp + 4], esi
mov dword [esp], ebp
call fcn.0047ac50
mov dword [esp + 0x4c], eax
add eax, 0xc
mov dword [esp + 0x40], eax
lea esi, [esi]
lea edi, [edi]
mov ebx, dword [esp + 0x4c]
mov eax, dword [ebx + 4]
mov dword [esp], eax
call fcn.00479240
mov dword [esp + 0x50], eax
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x50]
mov esi, dword [esp + 0x40]
mov edi, dword [edx + 0x10]
add eax, 0xc
lea edx, [edi*4]
lea ecx, [edx + 8]
cmp ecx, 7
jbe 0x477e10
test al, 4
je 0x477e10
mov ebp, dword [esp + 0x4c]
mov esi, dword [esp + 0x50]
mov ecx, dword [ebp + 0xc]
mov eax, esi
add eax, 0x10
mov dword [esi + 0xc], ecx
mov esi, ebp
lea ecx, [edx + 4]
add esi, 0x10
lea esi, [esi]
lea edi, [edi]
cld
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0xf4]
mov edx, dword [eax + 4]
mov dword [esp], edx
call fcn.00479240
mov dword [esp + 0x54], eax
mov edx, dword [esp + 0xf4]
mov eax, dword [esp + 0x54]
mov edi, dword [edx + 0x10]
lea esi, [edx + 0xc]
add eax, 0xc
lea ebx, [edi*4]
lea ecx, [ebx + 8]
cmp ecx, 7
jbe 0x477e70
test al, 4
je 0x477e70
mov ebp, dword [esp + 0x54]
lea ecx, [ebx + 4]
mov esi, dword [edx + 0xc]
mov eax, ebp
add eax, 0x10
mov dword [ebp + 0xc], esi
lea esi, [edx + 0x10]
lea esi, [esi]
cld
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov dword [esp], 1
mov edi, dword [esp + 0xb8]
mov ebx, dword [esp + 0xd4]
mov edx, dword [esp + 0xd0]
sub ebx, edi
mov dword [esp + 0xac], ebx
mov ebx, edi
add ebx, edx
call fcn.004797d0
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x3c]
test ecx, ecx
js 0x478887
mov ecx, dword [esp + 0x3c]
xor eax, eax
mov dword [esp + 0xb4], eax
xor eax, eax
mov dword [esp + 0xb0], ecx
test ebx, ebx
js 0x478880
add eax, ebx
mov edx, dword [esp + 0xac]
mov edi, eax
mov ebp, dword [esp + 0xac]
mov eax, dword [esp + 0x90]
sub eax, edx
lea edx, [ebx + ebp]
mov ebx, dword [esp + 0x90]
inc eax
sub edx, ebx
cmp edx, dword [esp + 0xa0]
jge 0x477f10
mov esi, dword [esp + 0xa0]
sub edx, esi
add eax, edx
lea esi, [edi + eax]
lea ebp, [ecx + eax]
cmp ebp, esi
mov eax, ebp
jle 0x477f1e
mov eax, esi
cmp eax, edi
jle 0x477f24
mov eax, edi
test eax, eax
jle 0x477f2e
sub esi, eax
sub ebp, eax
sub edi, eax
mov ecx, dword [esp + 0xb4]
test ecx, ecx
jle 0x477f76
mov ecx, dword [esp + 0x48]
mov ebx, dword [esp + 0xb4]
mov dword [esp], ecx
mov dword [esp + 4], ebx
call fcn.00479980
mov dword [esp + 0x48], eax
mov edx, dword [esp + 0x54]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00479800
mov ebx, eax
mov eax, dword [esp + 0x54]
mov dword [esp], eax
call fcn.00479420
mov dword [esp + 0x54], ebx
mov eax, esi
mov esi, dword [esp + 0xb8]
sub eax, esi
test eax, eax
jle 0x4787b2
mov dword [esp + 4], eax
mov eax, dword [esp + 0x54]
mov dword [esp], eax
call fcn.0047a290
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0xb0]
test ecx, ecx
jle 0x477fc3
mov esi, dword [esp + 0xb0]
mov ebx, dword [esp + 0x50]
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.00479980
mov dword [esp + 0x50], eax
test ebp, ebp
jle 0x477fdb
mov dword [esp + 4], ebp
mov ebp, dword [esp + 0x50]
mov dword [esp], ebp
call fcn.0047a290
mov dword [esp + 0x50], eax
test edi, edi
jle 0x477ff3
mov dword [esp + 4], edi
mov edi, dword [esp + 0x48]
mov dword [esp], edi
call fcn.0047a290
mov dword [esp + 0x48], eax
mov edx, dword [esp + 0x50]
mov ecx, 0x20
mov ebx, 1
mov dword [esp + 0xbc], ebx
mov eax, dword [esp + 0x54]
mov dword [esp + 0x94], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0047a550
cmp dword [eax + 0x10], 1
mov ebp, eax
jle 0x4786c4
mov ecx, dword [esp + 0x48]
xor eax, eax
xor esi, esi
mov dword [esp + 0x98], eax
mov edi, dword [ebp + 0xc]
mov dword [ebp + 0xc], 0
mov dword [esp + 0x2c], esi
mov dword [esp + 4], ecx
mov dword [esp], ebp
call fcn.0047a500
mov ebx, dword [esp + 0x7c]
mov ecx, eax
test ebx, ebx
setne al
xor edx, edx
test ecx, ecx
setle dl
test eax, edx
je 0x478540
mov edx, dword [esp + 0x7c]
mov ebx, 1
mov dword [esp + 0xec], ebx
and edx, 1
xor edx, edi
mov dword [esp + 0x98], edx
je 0x478f08
test edi, edi
jne 0x4788a6
mov esi, dword [esp + 0xa0]
mov eax, 0x11
cmp dword [esp + 0x78], esi
mov dword [esp + 0xec], eax
je 0x478110
mov ebx, dword [esp + 0x90]
xor eax, eax
cmp ebx, 0x1f
jle 0x47892b
mov esi, dword [esp + 0xf4]
lea esi, [esi]
mov edx, dword [esi + eax*4 + 0x14]
test edx, edx
jne 0x478110
sub ebx, 0x20
inc eax
cmp ebx, 0x1f
jg 0x4780d0
cmp ebx, 1
jle 0x478f18
lea edx, [esi + eax*4]
mov eax, dword [edx + 0x14]
bsf ecx, eax
shr eax, cl
mov dword [edx + 0x14], eax
lea eax, [ebx - 1]
cmp ecx, eax
jge 0x478f18
lea esi, [esi]
lea edi, [edi]
mov ebx, 0x10
test edi, edi
mov dword [esp + 0x94], ebx
je 0x4787d0
xor esi, esi
mov edi, 0x20
mov dword [esp + 0xbc], esi
mov dword [esp + 0x94], edi
fld1
fst qword [esp + 0x60]
fstp qword [esp + 0x30]
mov eax, dword [esp + 0xd4]
mov edi, dword [esp + 0xd0]
mov ecx, dword [esp + 0xa4]
add edi, eax
test ecx, ecx
jne 0x47816b
cmp eax, dword [esp + 0x90]
jl 0x4788b7
fld qword [esp + 0x30]
lea ecx, [esp + 0xcc]
lea edx, [esp + 0xc8]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
fstp qword [esp]
call fcn.0047a840
mov esi, eax
mov eax, dword [esp + 0xc8]
test eax, eax
jl 0x478937
jle 0x4781ae
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.0047a290
mov esi, eax
mov eax, dword [esp + 0xbc]
mov ebx, dword [esp + 0xf4]
test eax, eax
je 0x478655
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.0047a550
mov dword [esp + 0xf4], eax
mov ecx, eax
mov edx, dword [esp + 0xa4]
mov eax, dword [ebx + 0x10]
dec eax
test edx, edx
jne 0x478230
cmp dword [ecx + 0x10], eax
jle 0x478201
bsr edx, dword [ecx + eax*4 + 0x14]
xor edx, 0x1f
bsr eax, dword [ebx + eax*4 + 0x14]
xor eax, 0x1f
cmp edx, eax
jle 0x478230
mov eax, dword [esp + 0xa0]
cmp dword [esp + 0x78], eax
jne 0x47894a
dec dword [esp + 0xd4]
mov ecx, 1
mov dword [esp + 0xa4], ecx
lea esi, [esi]
lea edi, [edi]
mov dword [esp], esi
call fcn.00479420
mov dword [esp], ebx
call fcn.00479420
mov ebx, dword [esp + 0x98]
test ebx, ebx
jne 0x4786cf
mov esi, dword [esp + 0xd4]
mov ecx, dword [esp + 0xd0]
add esi, ecx
cmp edi, esi
sete dl
xor eax, eax
cmp dword [esp + 0x2c], 0
setne al
test edx, eax
je 0x4782b0
fld qword [esp + 0x30]
fmul qword [0x53ee08]
fld qword [esp + 0x60]
fsub dword [0x53edfc]
fld st(1)
fchs
fucomp st(1)
fnstsw ax
sahf
jbe 0x478847
fstp st(0)
fld qword [esp + 0x60]
fucompp
fnstsw ax
sahf
ja 0x478fcf
lea esi, [esi]
lea edi, [edi]
mov ebx, dword [esp + 0xa4]
xor edx, edx
mov dword [esp + 0xb8], edx
test ebx, ebx
je 0x478820
mov eax, dword [esp + 0x54]
mov dword [esp], eax
call fcn.00479420
mov edi, dword [esp + 0x50]
mov dword [esp], edi
call fcn.00479420
mov ecx, dword [esp + 0x48]
mov dword [esp], ecx
call fcn.00479420
mov dword [esp], ebp
call fcn.00479420
jmp 0x477db0
movsx eax, byte [ecx + 1]
cmp eax, 0x58
je 0x4789ec
mov ebp, 1
cmp eax, 0x78
mov dword [esp + 0x80], ebp
je 0x4789ec
nop
lea esi, [esi]
mov ebp, ecx
inc ecx
mov dword [esp + 0xf0], ecx
movzx eax, byte [ebp + 1]
cmp al, 0x30
je 0x478320
test al, al
jne 0x477770
jmp 0x47771b
mov ebx, 1
mov eax, ecx
inc ecx
mov dword [esp + 0xa8], ebx
test ebp, ebp
mov dword [esp + 0xf0], ecx
movsx ebx, byte [eax + 1]
jne 0x4783d9
cmp ebx, 0x30
jne 0x47837c
inc dword [esp + 0x84]
mov esi, ecx
inc ecx
mov dword [esp + 0xf0], ecx
movsx ebx, byte [esi + 1]
cmp ebx, 0x30
je 0x478362
lea edx, [ebx - 0x31]
cmp edx, 8
ja 0x477800
mov dword [esp + 0x6c], ecx
mov esi, dword [esp + 0x84]
xor eax, eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], esi
lea esi, [ebx - 0x30]
jmp 0x4783e5
mov edx, ebp
inc ebp
cmp edx, 8
jg 0x478446
mov edx, dword [esp + 0x5c]
lea ebx, [edx + edx*4]
lea eax, [esi + ebx*2]
mov dword [esp + 0x5c], eax
xor esi, esi
mov dword [esp + 0x84], esi
mov eax, ecx
inc ecx
mov dword [esp + 0xf0], ecx
movsx ebx, byte [eax + 1]
lea esi, [ebx - 0x30]
cmp esi, 9
ja 0x477800
inc dword [esp + 0x84]
test esi, esi
je 0x4783cb
mov ebx, dword [esp + 0x84]
mov edx, 1
add dword [esp + 0x88], ebx
lea esi, [esi]
lea edi, [edi]
cmp edx, dword [esp + 0x84]
jge 0x4783a8
mov eax, ebp
inc ebp
cmp eax, 8
jg 0x478431
mov ebx, dword [esp + 0x5c]
lea eax, [ebx + ebx*4]
add eax, eax
mov dword [esp + 0x5c], eax
inc edx
jmp 0x478410
cmp ebp, 0x10
jg 0x47842e
mov ebx, dword [esp + 0x58]
inc edx
lea eax, [ebx + ebx*4]
add eax, eax
mov dword [esp + 0x58], eax
jmp 0x478410
cmp ebp, 0x10
jg 0x4783c2
mov ebx, dword [esp + 0x58]
lea edx, [ebx + ebx*4]
lea eax, [esi + edx*2]
mov dword [esp + 0x58], eax
jmp 0x4783c2
mov dword [esp + 0xf0], edi
jmp 0x477900
cmp eax, 3
jne 0x477a62
mov edi, dword [esp + 0x74]
inc edi
mov dword [esp + 0x7c], edi
jmp 0x477a62
mov eax, 1
mov dword [esp + 0x7c], eax
jmp 0x477a62
cmp ebx, 0x69
je 0x477943
cmp ebx, 0x6e
jne 0x477708
mov ecx, 0x53edf5
lea ebx, [esp + 0xf0]
mov dword [esp + 4], ecx
mov dword [esp], ebx
call fcn.0047ada0
test eax, eax
je 0x477708
mov eax, dword [esp + 0x118]
mov edx, 4
mov esi, dword [esp + 0x11c]
mov dword [esp + 0xec], edx
mov ebp, dword [esp + 0xf0]
mov edx, dword [eax + 8]
lea edi, [edx + 1]
mov dword [esi], edi
cmp byte [ebp], 0x28
je 0x47913b
lea esi, [edx + 1]
mov edx, dword [esp + 0x11c]
mov dword [edx], esi
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0xf4]
test ecx, ecx
je 0x477722
mov edi, dword [esp + 0x70]
test edi, edi
je 0x478a74
mov dword [edx + 0x10], 0
mov ebp, 0x50
mov dword [esp + 0xec], ebp
jmp 0x477722
test ecx, ecx
jl 0x478df7
je 0x478ce8
mov dword [esp], ebp
mov ecx, dword [esp + 0x48]
mov dword [esp + 4], ecx
call fcn.0047ad20
fld dword [0x53edf8]
fucomp st(1)
fnstsw ax
sahf
jae 0x478840
fld dword [0x53edfc]
test edi, edi
fmul st(1), st(0)
fxch st(1)
fst qword [esp + 0x60]
fstp qword [esp + 0x30]
je 0x47859a
xor esi, esi
mov edi, 0x10
mov dword [esp + 0xbc], esi
mov dword [esp + 0x94], edi
fld qword [0x53ee00]
fld qword [esp + 0x60]
fxch st(1)
fucomp st(1)
fnstsw ax
sahf
jbe 0x4788f4
fnstcw word [esp + 0xc6]
movzx edx, word [esp + 0xc6]
fld qword [esp + 0x60]
fxch st(1)
or dx, 0xc00
mov word [esp + 0xc4], dx
fldcw word [esp + 0xc4]
fistp dword [esp + 0x2c]
fldcw word [esp + 0xc6]
cmp dword [esp + 0x7c], 1
fild dword [esp + 0x2c]
fsub st(1), st(0)
fxch st(1)
fstp qword [esp + 0x60]
je 0x478990
jle 0x478a52
fstp st(1)
cmp dword [esp + 0x7c], 2
jne 0x47813f
mov edi, dword [esp + 0xbc]
test edi, edi
jne 0x47813f
fld qword [esp + 0x60]
fldz
fxch st(1)
fucompp
fnstsw ax
sahf
jbe 0x47813f
fstp st(0)
inc dword [esp + 0x2c]
mov edx, 0x30
mov esi, dword [esp + 0x94]
fild dword [esp + 0x2c]
sub edx, esi
mov dword [esp + 0x94], edx
jmp 0x47813f
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.0047aaa0
mov dword [esp + 0xf4], eax
mov ecx, eax
mov eax, dword [eax + 0x10]
dec eax
cmp dword [ebx + 0x10], eax
jle 0x47868b
bsr edx, dword [ecx + eax*4 + 0x14]
xor edx, 0x1f
bsr eax, dword [ebx + eax*4 + 0x14]
xor eax, 0x1f
cmp edx, eax
jge 0x478230
mov eax, dword [esp + 0xa4]
test eax, eax
je 0x478904
mov ecx, dword [esp + 0xd4]
inc ecx
cmp ecx, dword [esp + 0x90]
mov dword [esp + 0xd4], ecx
jne 0x478230
xor edx, edx
mov dword [esp + 0xa4], edx
jmp 0x478230
mov esi, dword [eax + 0x14]
test esi, esi
jne 0x47802b
mov ebx, dword [esp + 0xa4]
test ebx, ebx
jne 0x4789a6
mov ebx, dword [esp + 0x90]
mov edx, dword [esp + 0xd4]
sub ebx, edx
test ebx, ebx
je 0x4789a6
jle 0x478fe2
mov dword [esp + 4], ebx
mov esi, dword [esp + 0xf4]
mov dword [esp], esi
call fcn.0047a290
mov dword [esp + 0xf4], eax
mov eax, dword [esp + 0xd0]
sub eax, ebx
mov dword [esp + 0xd0], eax
mov edi, dword [esp + 0x11c]
mov ecx, dword [esp + 0x54]
mov dword [edi], eax
mov dword [esp], ecx
call fcn.00479420
mov esi, dword [esp + 0x50]
mov dword [esp], esi
call fcn.00479420
mov edx, dword [esp + 0x48]
mov dword [esp], edx
call fcn.00479420
mov ebx, dword [esp + 0x4c]
mov dword [esp], ebx
call fcn.00479420
mov dword [esp], ebp
call fcn.00479420
mov eax, dword [esp + 0x118]
mov ebp, dword [esp + 0xd0]
cmp dword [eax + 8], ebp
jge 0x478504
mov ebx, dword [esp + 0xf4]
mov eax, 0xa3
mov dword [ebx + 0x10], 0
mov dword [esp + 0xec], eax
call sub.msvcrt.dll__errno
mov dword [eax], 0x22
mov ebp, dword [esp + 0x118]
mov edx, dword [ebp + 8]
jmp 0x4784f8
jge 0x477f9d
mov edx, dword [esp + 0x54]
neg eax
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.0047a990
jmp 0x477f9d
mov ecx, dword [esp + 0xa4]
test ecx, ecx
setne al
xor edx, edx
cmp dword [esp + 0xac], 1
setle dl
test eax, edx
je 0x478139
mov ebx, dword [esp + 0xf4]
mov dword [ebx + 0x10], 0
mov ebx, dword [esp + 0xa0]
mov eax, 0x50
mov dword [esp + 0xd0], ebx
mov dword [esp + 0xec], eax
jmp 0x4786cf
mov esi, dword [esp + 0xf4]
mov dword [esp], esi
call fcn.0047aa50
mov dword [esp + 0xb8], eax
jmp 0x4782c8
fstp st(0)
jmp 0x478110
fucomp st(1)
fnstsw ax
sahf
jbe 0x4788fd
fld1
fsubrp st(1)
fld qword [esp + 0x60]
fxch st(1)
fucompp
fnstsw ax
sahf
jbe 0x4782b0
mov ebx, dword [esp + 0x94]
or dword [esp + 0xec], ebx
jmp 0x4786cf
sub ecx, ebx
jmp 0x477ed6
mov esi, dword [esp + 0x3c]
xor ebp, ebp
xor ecx, ecx
mov dword [esp + 0xb0], ebp
neg esi
mov eax, esi
mov dword [esp + 0xb4], esi
jmp 0x477ecc
mov ecx, 0x21
mov dword [esp + 0xec], ecx
jmp 0x478110
mov esi, dword [esp + 0x90]
sub esi, eax
mov eax, dword [esp + 0xf4]
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.0047a290
sub dword [esp + 0xd0], esi
mov ebx, dword [esp + 0x90]
mov dword [esp + 0xf4], eax
mov dword [esp + 0xd4], ebx
jmp 0x47816b
fstp st(0)
fstp st(0)
jmp 0x478143
fstp st(0)
jmp 0x4782b0
mov dword [esp], ecx
mov eax, 1
mov dword [esp + 4], eax
call fcn.0047a990
inc dword [esp + 0xd0]
inc dword [esp + 0x78]
xor ecx, ecx
mov dword [esp + 0x2c], ecx
jmp 0x478230
mov esi, dword [esp + 0xf4]
jmp 0x4780e1
mov dword [esp], esi
neg eax
mov dword [esp + 4], eax
call fcn.0047a990
jmp 0x4781ae
mov dword [esp], ecx
mov eax, 1
mov dword [esp + 4], eax
call fcn.0047a290
dec dword [esp + 0xd0]
xor edx, edx
dec dword [esp + 0x78]
mov dword [esp + 0xf4], eax
mov dword [esp + 0x98], edx
jmp 0x478920
fstp qword [esp + 0xd8]
jmp 0x477b6f
fld qword [esp + 0xd8]
jmp 0x477c5a
fstp st(1)
mov ebx, dword [esp + 0xbc]
test ebx, ebx
jne 0x47861e
jmp 0x47813f
mov eax, dword [esp + 0xd0]
jmp 0x478726
mov edx, 1
mov dword [esp + 0x9c], edx
lea edx, [edi + 2]
mov dword [esp + 0xf0], edx
movsx ebx, byte [eax + 1]
jmp 0x47785b
mov dword [esp + 0xd0], edx
jmp 0x477d74
mov ebx, dword [esp + 0x74]
sub eax, ebx
mov dword [esp + 0x7c], eax
jmp 0x477a62
mov ecx, dword [esp + 0x74]
lea eax, [esp + 0xf0]
mov ebx, dword [esp + 0x11c]
mov dword [esp], eax
mov edx, dword [esp + 0x118]
lea esi, [esp + 0xf4]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
call fcn.0047b190
mov dword [esp + 0xec], eax
cmp eax, 6
jne 0x47771b
mov dword [esp + 0xf0], edi
xor edi, edi
mov dword [esp + 0x74], edi
jmp 0x47771b
mov dword [esp + 0xd0], edx
jmp 0x47877e
mov ecx, dword [esp + 0x7c]
test ecx, ecx
jne 0x478c35
fld qword [esp + 0x60]
fucomp st(2)
fnstsw ax
fstp st(1)
sahf
jb 0x47813f
jmp 0x478631
mov eax, dword [esp + 0xec]
mov ebx, dword [edx + 0x10]
and eax, 0xfffffff8
test ebx, ebx
jle 0x478a88
or eax, 2
mov dword [esp + 0xec], eax
test al, 0x30
je 0x477722
or eax, 0x40
mov dword [esp + 0xec], eax
jmp 0x477722
jge 0x478984
neg eax
mov edx, eax
and edx, 0xf
je 0x478aca
fld qword [edx*8 + 0x53eed0]
fdivr qword [esp + 0xd8]
fstp qword [esp + 0xd8]
and eax, 0xfffffff0
je 0x478984
mov ecx, eax
lea ebx, [esp + 0xd8]
sar ecx, 4
cmp ecx, 0xf
jle 0x478b28
fld qword [0x53efb0]
mov edi, dword [ebx + 4]
sub ecx, 0x10
mov edx, edi
and edi, 0x800fffff
and edx, 0x7ff00000
or edi, 0x3ff00000
mov dword [ebx + 4], edi
shr edx, 0x14
cmp ecx, 0xf
fld qword [esp + 0xd8]
lea esi, [edx + esi - 0x3ff]
fmul st(1)
fstp qword [esp + 0xd8]
jg 0x478aea
fstp st(0)
mov edi, dword [ebx + 4]
mov eax, edi
and eax, 0x7ff00000
shr eax, 0x14
and edi, 0x800fffff
or edi, 0x3ff00000
mov dword [ebx + 4], edi
lea esi, [eax + esi - 0x3ff]
xor eax, eax
test ecx, ecx
jle 0x478984
fld qword [esp + 0xd8]
test cl, 1
je 0x478b6f
fmul qword [eax*8 + 0x53ef90]
fst qword [esp + 0xd8]
sar ecx, 1
inc eax
test ecx, ecx
jg 0x478b5c
jmp 0x477c5a
fst qword [esp + 0xd8]
mov edi, dword [esp + 0x7c]
mov edx, 1
mov dword [esp + 0x14], edx
lea eax, [esp + 0xec]
mov ecx, dword [esp + 0x120]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x11c]
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x118]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
fstp qword [esp]
jmp 0x477b62
mov edx, 0xf
sub edx, ebp
lea eax, [edx + 0x16]
cmp eax, dword [esp + 0x3c]
jl 0x478978
mov edi, dword [esp + 0x3c]
xor ecx, ecx
fmul qword [edx*8 + 0x53eed0]
mov dword [esp + 0x14], ecx
lea esi, [esp + 0xec]
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x1c], esi
sub edi, edx
mov esi, dword [esp + 0x118]
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x120]
fmul qword [edi*8 + 0x53eed0]
mov edi, dword [esp + 0x11c]
mov dword [esp + 0x10], edx
mov dword [esp + 8], esi
mov dword [esp + 0xc], edi
fst qword [esp + 0xd8]
jmp 0x477b5d
fstp st(1)
jmp 0x47813f
jge 0x477d4f
mov dword [esp + 0xd0], edx
lea eax, [ecx + esi]
test eax, eax
mov dword [esp + 0xd4], eax
jle 0x479083
mov edx, dword [esp + 0xf4]
neg esi
mov dword [esp + 4], esi
mov dword [esp], edx
call fcn.0047a990
jmp 0x477d4f
cmp dword [esp + 0x3c], 0xffffffea
jl 0x478978
mov ecx, dword [esp + 0x3c]
xor esi, esi
mov dword [esp + 0x14], esi
lea edx, [esp + 0xec]
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x120]
shl ecx, 3
mov dword [esp + 0x18], edi
neg ecx
mov edx, dword [esp + 0x118]
fdiv qword [ecx + 0x53eed0]
mov ecx, dword [esp + 0x11c]
mov dword [esp + 0x10], eax
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
jmp 0x478c29
mov esi, dword [esp + 0xe4]
mov edx, 0x15
or esi, 0x100000
bsf eax, esi
jmp 0x477aff
test edi, edi
je 0x478fb0
mov eax, dword [esp + 0xa4]
test eax, eax
je 0x478d24
mov ecx, dword [esp + 0xd4]
mov esi, dword [esp + 0xf4]
mov eax, ecx
lea edx, [esi + 0x14]
sar eax, 5
lea ebx, [edx + eax*4]
cmp edx, ebx
jae 0x479015
mov eax, dword [edx]
add edx, 4
inc eax
je 0x478d14
mov edx, 0x11
mov dword [esp + 0xec], edx
mov esi, dword [esp + 0x90]
cmp dword [esp + 0xac], esi
setl al
xor edx, edx
cmp dword [esp + 0xa4], 0
sete dl
test eax, edx
jne 0x4786cf
mov ebx, dword [esp + 0xf4]
test byte [ebx + 0x14], 1
je 0x4786cf
test edi, edi
je 0x4790b0
mov edi, dword [ebx + 0x10]
lea edx, [ebx + 0x14]
mov ecx, ebx
lea esi, [edx + edi*4]
mov eax, dword [edx]
cmp eax, 0xffffffff
jne 0x4791ce
mov dword [edx], 0
add edx, 4
cmp edx, esi
jb 0x478d7a
cmp edi, dword [ebx + 8]
jge 0x479168
mov ebx, dword [ecx + 0x10]
mov edx, 1
mov dword [ecx + ebx*4 + 0x14], edx
inc ebx
mov dword [ecx + 0x10], ebx
mov dword [esp + 0xf4], ecx
mov ebx, dword [esp + 0xd4]
mov edx, ebx
and edx, 0x1f
je 0x478dc9
mov esi, 0x20
sub esi, edx
mov edx, esi
mov edi, dword [ecx + 0x10]
dec edi
sar edi, 5
bsr eax, dword [ecx + edi*4 + 0x14]
xor eax, 0x1f
cmp eax, edx
je 0x478de6
lea ecx, [ebx + 1]
mov dword [esp + 0xd4], ecx
mov ebx, 0x21
mov dword [esp + 0xec], ebx
jmp 0x4786cf
cmp edi, 1
sbb esi, esi
and esi, 0x10
add esi, 0x11
test edi, edi
setne dl
cmp dword [esp + 0xac], 1
mov dword [esp + 0xec], esi
setg al
or eax, edx
test al, 1
jne 0x4786cf
mov ecx, dword [esp + 0xa4]
mov edi, dword [esp + 0xa0]
test ecx, ecx
setne al
cmp dword [esp + 0x78], edi
sete bl
or eax, ebx
test al, 1
jne 0x4786cf
mov dword [esp], ebp
mov esi, 1
mov dword [esp + 4], esi
call fcn.0047a290
mov dword [esp], eax
mov edx, dword [esp + 0x48]
mov ebp, eax
mov dword [esp + 4], edx
call fcn.0047a500
test eax, eax
mov edx, 0x11
jle 0x4786cf
mov edi, dword [esp + 0xa0]
cmp dword [esp + 0x78], edi
je 0x4790ef
mov dword [esp + 0xec], edx
mov ecx, dword [esp + 0x90]
mov esi, dword [esp + 0xf4]
sub dword [esp + 0xd0], ecx
mov ebx, ecx
add ebx, 0x1f
mov dword [esp + 0xd4], ecx
sar ebx, 5
cmp dword [esi + 4], ebx
jl 0x479124
mov ebx, dword [esp + 0x90]
lea edx, [esi + 0x14]
mov edi, dword [esp + 0x90]
and ebx, 0x1f
sar edi, 5
cmp ebx, 1
sbb edi, 0xffffffff
lea eax, [edx + edi*4]
mov dword [esi + 0x10], edi
jmp 0x478eea
mov dword [edx], 0xffffffff
add edx, 4
cmp edx, eax
jb 0x478ee1
test ebx, ebx
je 0x478efc
mov ecx, 0x20
sub ecx, ebx
shr dword [edx - 4], cl
mov dword [esp + 0xf4], esi
jmp 0x4786cf
cmp edi, 1
sbb eax, eax
and eax, 0x10
add eax, 0x11
jmp 0x478812
mov ebx, dword [esp + 0x78]
mov edi, dword [esp + 0x90]
dec ebx
mov dword [esp + 0xd0], ebx
mov ebx, edi
add ebx, 0x1f
mov dword [esp + 0xd4], edi
sar ebx, 5
cmp dword [esi + 4], ebx
jl 0x478ffe
mov ebx, dword [esp + 0x90]
lea edx, [esi + 0x14]
mov ecx, dword [esp + 0x90]
and ebx, 0x1f
sar ecx, 5
cmp ebx, 1
sbb ecx, 0xffffffff
lea eax, [edx + ecx*4]
mov dword [esi + 0x10], ecx
jmp 0x478f71
mov dword [edx], 0xffffffff
add edx, 4
cmp edx, eax
jb 0x478f68
jmp 0x478eee
mov edx, dword [esp + 0xf4]
mov ebp, 0x50
mov ecx, dword [esp + 0xa0]
mov esi, dword [esp + 0x11c]
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov dword [esp + 0xec], ebp
mov dword [esi], ecx
jmp 0x47851a
cmp dword [esp + 0xac], 1
je 0x479079
mov ebx, 0x21
mov dword [esp + 0xec], ebx
jmp 0x478d30
mov edi, dword [esp + 0x94]
or dword [esp + 0xec], edi
jmp 0x4786cf
mov ecx, dword [esp + 0xf4]
mov edi, ebx
neg edi
mov dword [esp + 4], edi
mov dword [esp], ecx
call fcn.0047a990
jmp 0x478716
mov dword [esp], esi
call fcn.00479420
mov dword [esp], ebx
call fcn.00479240
mov esi, eax
jmp 0x478f43
and ecx, 0x1f
je 0x47902c
mov ebx, 0xffffffff
shl ebx, cl
mov ecx, dword [edx]
or ebx, ecx
inc ebx
jne 0x478d24
mov dword [esi + 0x10], 1
mov edi, dword [esp + 0xa0]
mov eax, 1
mov dword [esi + 0x14], 1
mov edx, dword [esp + 0x90]
mov esi, 0x21
mov dword [esp + 0xd4], eax
xor ebx, ebx
mov dword [esp + 0xec], esi
lea ecx, [edi + edx - 1]
mov dword [esp + 0xd0], ecx
mov dword [esp + 0xa4], ebx
jmp 0x4786de
mov edx, 1
jmp 0x478e77
inc eax
jl 0x478f7a
mov eax, dword [esp + 0xf4]
mov edi, 1
mov dword [esp + 0xd4], edi
mov dword [eax + 0x14], 1
mov dword [eax + 0x10], 1
jmp 0x477d4f
cmp dword [esp + 0xac], 1
je 0x4787f8
mov esi, dword [ebx + 0x10]
lea edx, [ebx + 0x14]
lea ecx, [edx + esi*4]
mov eax, dword [edx]
test eax, eax
jne 0x4791c6
mov dword [edx], 0xffffffff
add edx, 4
cmp edx, ecx
jb 0x4790c7
mov edx, 0x11
mov dword [esp + 0xec], edx
jmp 0x4786cf
mov eax, dword [esp + 0xf4]
mov esi, 0x21
mov dword [esp + 0xec], esi
cmp dword [eax + 0x10], 1
jne 0x4786cf
cmp dword [eax + 0x14], 1
jne 0x4786cf
mov eax, 1
mov dword [esp + 0x70], eax
jmp 0x4786cf
mov dword [esp], esi
call fcn.00479420
mov dword [esp], ebx
call fcn.00479240
mov esi, eax
jmp 0x478ebc
mov dword [esp], ebx
mov edi, dword [esp + 0x118]
mov ecx, dword [esp + 0x120]
mov dword [esp + 4], edi
mov dword [esp + 8], ecx
call fcn.0047aed0
mov dword [esp + 0xec], eax
mov edx, dword [edi + 8]
jmp 0x4784f8
mov ecx, dword [ebx + 4]
lea esi, [ebx + 0xc]
inc ecx
mov dword [esp], ecx
call fcn.00479240
mov dword [esp + 0x44], eax
mov edi, dword [ebx + 0x10]
mov eax, dword [esp + 0x44]
lea edx, [edi*4]
lea ecx, [edx + 8]
add eax, 0xc
cmp ecx, 7
jbe 0x4791ad
test al, 4
je 0x4791ad
mov esi, dword [esp + 0x44]
lea ecx, [edx + 4]
mov eax, dword [ebx + 0xc]
mov dword [esi + 0xc], eax
mov eax, esi
add eax, 0x10
lea esi, [ebx + 0x10]
cld
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov dword [esp], ebx
call fcn.00479420
mov ecx, dword [esp + 0x44]
jmp 0x478d9b
dec eax
mov dword [edx], eax
jmp 0x4790de
inc eax
mov dword [edx], eax
jmp 0x478dab