Function at 0x4f6990
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 0x4f6750
mov eax, 4
xor edi, edi
nop
add eax, eax
add edi, 1
lea edx, [eax + 0xf]
cmp ecx, edx
jg 0x4f6700
mov dword [esp], edi
call fcn.004f8430
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 0x4f673f
lea esi, [esi]
nop
movzx ecx, byte [edx]
add eax, 1
add edx, 1
mov byte [eax], cl
test cl, cl
jne 0x4f6730
test ebx, ebx
je 0x4f6745
mov dword [ebx], eax
add esp, 0x10
mov eax, edi
pop ebx
pop esi
pop edi
ret
xor edi, edi
jmp 0x4f670c
push ebp
push edi
push esi
push ebx
sub esp, 0xcc
mov eax, dword [esp + 0xe4]
mov esi, dword [esp + 0xf4]
mov edi, dword [esp + 0xf0]
mov edx, dword [esp + 0xe0]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xe8]
mov dword [esp + 0x30], esi
mov esi, dword [esp + 0xfc]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xec]
mov dword [esp + 0x28], esi
mov esi, dword [eax]
mov ecx, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0xf8]
mov eax, esi
mov dword [esp + 0x3c], edx
and eax, 0xffffffcf
mov dword [esp + 0x1c], edi
mov dword [ecx], eax
mov eax, esi
and eax, 7
cmp eax, 3
je 0x4f6ca8
mov edi, esi
and edi, 4
mov dword [esp + 0x44], edi
jne 0x4f6c20
test eax, eax
je 0x4f6c70
mov edi, dword [edx]
mov eax, 0x20
xor edx, edx
mov dword [esp + 0x48], edi
mov ecx, dword [esp + 0x48]
cmp edi, 0x20
jle 0x4f6a49
lea esi, [esi]
nop
add eax, eax
add edx, 1
cmp ecx, eax
jg 0x4f6a40
mov dword [esp], edx
call fcn.004f8430
mov edi, eax
mov eax, dword [esp + 0x48]
lea edx, [edi + 0x14]
lea ebx, [eax - 1]
mov eax, dword [esp + 0x2c]
sar ebx, 5
lea ecx, [eax + ebx*4]
lea esi, [esi]
nop
mov ebp, dword [eax]
add eax, 4
add edx, 4
mov dword [edx - 4], ebp
cmp ecx, eax
jae 0x4f6a70
mov eax, dword [esp + 0x2c]
add ecx, 1
lea ebx, [ebx*4 + 4]
add eax, 1
cmp ecx, eax
mov eax, 4
cmovb ebx, eax
sar ebx, 2
jmp 0x4f6aa8
test ebx, ebx
je 0x4f6ce8
mov eax, ebx
sub ebx, 1
mov ebp, dword [edi + ebx*4 + 0x14]
test ebp, ebp
je 0x4f6aa0
bsr edx, dword [edi + ebx*4 + 0x14]
mov dword [edi + 0x10], eax
shl eax, 5
xor edx, 0x1f
sub eax, edx
mov ebx, eax
mov dword [esp], edi
call fcn.004f82e0
mov ecx, dword [esp + 0x38]
mov dword [esp + 0xbc], eax
mov dword [esp + 0x78], ecx
test eax, eax
jne 0x4f6cf8
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x4f6c68
lea eax, [esp + 0xbc]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.004f8dd0
fstp qword [esp + 0x50]
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x60], eax
and edx, 0xfffff
mov eax, dword [esp + 0x78]
or edx, 0x3ff00000
lea ebp, [eax + ebx]
mov dword [esp + 0x64], edx
fld qword [esp + 0x60]
mov eax, 1
fsub dword [0x5329a0]
lea ecx, [ebp - 1]
sub eax, ebp
fmul qword [str.aCoc]
test ecx, ecx
mov dword [esp + 0x50], ecx
fadd qword [0x5329b0]
cmovns eax, ecx
fild dword [esp + 0x50]
fmul qword [0x5329b8]
sub eax, 0x435
faddp st(1)
test eax, eax
jle 0x4f6b79
mov dword [esp + 0x50], eax
fild dword [esp + 0x50]
fmul qword [0x5329c0]
faddp st(1)
fst qword [esp + 0x50]
cvttsd2si eax, qword [esp + 0x50]
fldz
fcompi st(1)
mov dword [esp + 0x50], eax
ja 0x4f7388
fstp st(0)
mov eax, ecx
shl eax, 0x14
add eax, edx
mov dword [esp + 0x64], eax
mov eax, ebx
sub eax, ecx
lea ecx, [eax - 1]
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x50]
cmp ecx, 0x16
ja 0x4f6d20
fld qword [ecx*8 + 0x532a20]
fst qword [esp + 0x58]
fld qword [esp + 0x60]
fxch st(1)
fcompi st(1)
fstp st(0)
ja 0x4f73c8
mov dword [esp + 0x8c], 0
mov dword [esp + 0x7c], 0
test eax, eax
jg 0x4f6c00
mov edx, 1
mov dword [esp + 0x6c], 0
sub edx, eax
mov dword [esp + 0x7c], edx
lea esi, [esi]
nop
mov dword [esp + 0x84], 0
mov ecx, dword [esp + 0x50]
add dword [esp + 0x6c], ecx
mov dword [esp + 0x80], ecx
jmp 0x4f6d7c
xor esi, esi
cmp eax, 4
jne 0x4f6c98
mov eax, dword [esp + 0x1c]
mov dword [eax], 0xffff8000
mov eax, dword [esp + 0x28]
mov dword [esp + 0xe8], 3
mov dword [esp + 0xe4], eax
mov dword [esp + 0xe0], 0x532999
add esp, 0xcc
pop ebx
pop esi
pop edi
pop ebp
jmp 0x4f66e0
mov dword [esp], edi
call fcn.004f8510
mov eax, dword [esp + 0x1c]
mov dword [eax], 1
mov eax, dword [esp + 0x28]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], 0x53299d
call 0x4f66e0
mov esi, eax
add esp, 0xcc
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x1c]
mov dword [eax], 0xffff8000
mov eax, dword [esp + 0x28]
mov dword [esp + 0xe8], 8
mov dword [esp + 0xe4], eax
mov dword [esp + 0xe0], str.Infinity
add esp, 0xcc
pop ebx
pop esi
pop edi
pop ebp
jmp 0x4f66e0
mov dword [edi + 0x10], 0
jmp 0x4f6ac7
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.004f81b0
mov eax, dword [esp + 0xbc]
mov edx, dword [esp + 0x38]
lea ecx, [eax + edx]
sub ebx, eax
mov dword [esp + 0x78], ecx
jmp 0x4f6ae6
mov dword [esp + 0x8c], 1
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x7c], 0
test edx, edx
jns 0x4f6d4e
mov edx, 1
mov dword [esp + 0x6c], 0
sub edx, eax
mov dword [esp + 0x7c], edx
mov eax, dword [esp + 0x50]
test eax, eax
jns 0x4f6c00
mov eax, dword [esp + 0x50]
sub dword [esp + 0x7c], eax
mov dword [esp + 0x50], 0
mov ecx, eax
mov dword [esp + 0x80], eax
neg ecx
mov dword [esp + 0x84], ecx
mov eax, dword [esp + 0x20]
cmp eax, 9
ja 0x4f7020
cmp eax, 5
jg 0x4f73e0
add ebp, 0x3fd
xor eax, eax
cmp ebp, 0x7f7
setbe al
mov ebp, eax
mov eax, dword [esp + 0x20]
cmp eax, 4
je 0x4f7414
cmp eax, 5
je 0x4f78c5
mov dword [esp + 0x88], 0
cmp eax, 2
je 0x4f741f
cmp eax, 3
jne 0x4f7028
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x30]
mov edx, 1
add eax, ecx
mov dword [esp + 0xa0], eax
add eax, 1
test eax, eax
mov dword [esp + 0x58], eax
cmovg edx, eax
mov eax, edx
mov dword [esp], eax
mov dword [esp + 0xbc], edx
call fcn.004f66a0
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0xc]
sub eax, 1
mov dword [esp + 0x70], eax
je 0x4f6e46
mov eax, 2
cmovns eax, dword [esp + 0x70]
and esi, 8
mov dword [esp + 0x70], eax
mov edx, eax
je 0x4f7080
mov eax, 3
sub eax, edx
mov dword [esp + 0x70], eax
cmp dword [esp + 0x58], 0xe
mov esi, ebp
setbe al
and esi, eax
mov eax, esi
test al, al
je 0x4f7080
mov eax, dword [esp + 0x80]
or eax, dword [esp + 0x70]
jne 0x4f7080
movsd xmm0, qword [esp + 0x60]
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0xbc], 0
movsd qword [esp + 0x70], xmm0
test ecx, ecx
je 0x4f6e9f
fld qword [esp + 0x70]
fld1
fcompi st(1)
ja 0x4f7d8e
fstp st(0)
fld qword [esp + 0x70]
fadd st(0)
fadd dword [0x5329dc]
fstp qword [esp + 0x98]
mov eax, dword [esp + 0x98]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x9c]
sub eax, 0x3400000
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x58]
test eax, eax
je 0x4f7ab6
mov eax, dword [esp + 0x58]
movsd xmm1, qword [esp + 0x70]
mov dword [esp + 0xa4], 0
mov dword [esp + 0x98], eax
movsd qword [esp + 0xa8], xmm1
mov eax, dword [esp + 0x98]
fld qword [esp + 0x90]
fld qword [eax*8 + 0x532a18]
mov eax, dword [esp + 0x88]
test eax, eax
je 0x4f78d5
fdivr dword [0x5329e4]
mov esi, dword [esp + 0x68]
cvttsd2si eax, qword [esp + 0xa8]
mov ecx, dword [esp + 0x98]
lea edx, [esi + 1]
mov dword [esp + 0x60], eax
add eax, 0x30
mov byte [esi], al
fsubrp st(1)
fild dword [esp + 0x60]
fsubr qword [esp + 0xa8]
fxch st(1)
fcomi st(1)
jbe 0x4f6fbc
fstp st(0)
jmp 0x4f7fb0
mov eax, dword [esp + 0xbc]
add eax, 1
mov dword [esp + 0xbc], eax
cmp eax, ecx
jge 0x4f7ae1
fld dword [0x5329d4]
add edx, 1
fmul st(1), st(0)
fmulp st(2)
fxch st(1)
fst qword [esp + 0x60]
cvttsd2si eax, qword [esp + 0x60]
mov dword [esp + 0x60], eax
fild dword [esp + 0x60]
add eax, 0x30
mov byte [edx - 1], al
fsubp st(1)
fxch st(1)
fcomi st(1)
ja 0x4f7fae
fld st(1)
fsubr dword [0x5329d0]
fxch st(1)
fcomi st(1)
fstp st(1)
jbe 0x4f6f70
fstp st(0)
fstp st(0)
movzx eax, byte [edx - 1]
mov esi, dword [esp + 0x68]
mov ecx, edx
jmp 0x4f6fee
cmp edx, esi
je 0x4f7ebc
movzx eax, byte [edx - 1]
mov ecx, edx
lea edx, [ecx - 1]
cmp al, 0x39
je 0x4f6fe0
mov dword [esp + 0x68], ecx
add eax, 1
mov byte [edx], al
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x44], 0x20
add eax, 1
mov dword [esp + 0x3c], eax
jmp 0x4f7328
mov dword [esp + 0x20], 0
fild dword [esp + 0x48]
fmul qword [0x5329c8]
fstp qword [esp + 0x30]
cvttsd2si eax, qword [esp + 0x30]
add eax, 3
mov dword [esp], eax
mov dword [esp + 0xbc], eax
call fcn.004f66a0
mov dword [esp + 0x30], 0
mov dword [esp + 0x68], eax
mov dword [esp + 0x70], 0
mov dword [esp + 0x88], 1
mov dword [esp + 0xa0], 0xffffffff
mov dword [esp + 0x58], 0xffffffff
mov eax, dword [esp + 0x78]
test eax, eax
js 0x4f7100
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x80]
cmp eax, dword [esi + 0x14]
jg 0x4f7100
mov ebp, dword [esp + 0x30]
fld qword [eax*8 + 0x532a20]
test ebp, ebp
jns 0x4f79ba
mov eax, dword [esp + 0x58]
test eax, eax
jg 0x4f79ba
jne 0x4f7443
fmul dword [0x5329e0]
fld qword [esp + 0x60]
fxch st(1)
fcompi st(1)
fstp st(0)
jae 0x4f7445
mov eax, dword [esp + 0x80]
mov esi, dword [esp + 0x68]
mov dword [esp + 0x48], 0
mov dword [esp + 0x60], 0
add eax, 2
mov dword [esp + 0x3c], eax
jmp 0x4f72f8
mov esi, dword [esp + 0x88]
test esi, esi
je 0x4f73a8
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x48]
mov ebp, dword [esp + 0x78]
sub esi, ebx
mov edx, dword [ecx + 4]
mov ecx, ebp
lea eax, [esi + 1]
sub ecx, esi
mov dword [esp + 0xbc], eax
cmp ecx, edx
jge 0x4f78a0
mov esi, dword [esp + 0x20]
lea eax, [esi - 3]
and eax, 0xfffffffd
je 0x4f7858
mov eax, ebp
sub eax, edx
cmp esi, 1
mov esi, dword [esp + 0x58]
setg dl
lea ecx, [eax + 1]
test esi, esi
mov dword [esp + 0xbc], ecx
setg al
test dl, al
je 0x4f716f
cmp ecx, esi
jg 0x4f80a3
mov eax, dword [esp + 0x7c]
add dword [esp + 0x6c], ecx
mov esi, dword [esp + 0x84]
mov dword [esp + 0x78], eax
add eax, ecx
mov dword [esp + 0x7c], eax
mov dword [esp], 1
call fcn.004f8660
mov dword [esp + 0x60], eax
mov ecx, dword [esp + 0x78]
test ecx, ecx
jle 0x4f71c6
mov edx, dword [esp + 0x6c]
test edx, edx
jle 0x4f71c6
cmp ecx, edx
mov eax, edx
cmovle eax, ecx
sub dword [esp + 0x7c], eax
sub ecx, eax
sub edx, eax
mov dword [esp + 0xbc], eax
mov dword [esp + 0x78], ecx
mov dword [esp + 0x6c], edx
mov ecx, dword [esp + 0x84]
test ecx, ecx
je 0x4f71f9
mov edx, dword [esp + 0x88]
test edx, edx
je 0x4f71e4
test esi, esi
jne 0x4f7bd1
mov eax, dword [esp + 0x84]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.004f8890
mov edi, eax
mov dword [esp], 1
call fcn.004f8660
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x50]
test eax, eax
jne 0x4f77e0
cmp dword [esp + 0x20], 1
jle 0x4f7820
mov ebx, 0x1f
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x7c]
sub ebx, eax
sub ebx, 4
and ebx, 0x1f
add edx, ebx
mov dword [esp + 0xbc], ebx
mov eax, ebx
test edx, edx
jle 0x4f7259
mov dword [esp], edi
mov dword [esp + 4], edx
call fcn.004f8a10
mov edi, eax
mov eax, dword [esp + 0xbc]
mov esi, dword [esp + 0x6c]
add esi, eax
test esi, esi
jle 0x4f7277
mov eax, dword [esp + 0x48]
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.004f8a10
mov dword [esp + 0x48], eax
cmp dword [esp + 0x20], 2
setg al
mov esi, eax
mov eax, dword [esp + 0x8c]
test eax, eax
jne 0x4f76b0
mov eax, dword [esp + 0x58]
test eax, eax
jg 0x4f7470
mov eax, esi
test al, al
je 0x4f7470
mov ebp, dword [esp + 0x58]
test ebp, ebp
jne 0x4f7455
mov eax, dword [esp + 0x48]
mov dword [esp + 8], 0
mov dword [esp + 4], 5
mov dword [esp], eax
call fcn.004f8580
mov dword [esp], edi
mov dword [esp + 4], eax
mov dword [esp + 0x48], eax
call fcn.004f8b50
test eax, eax
jle 0x4f7455
mov eax, dword [esp + 0x80]
mov esi, dword [esp + 0x68]
add eax, 2
mov dword [esp + 0x3c], eax
add dword [esp + 0x68], 1
mov byte [esi], 0x31
mov dword [esp + 0x44], 0x20
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call fcn.004f8510
mov ecx, dword [esp + 0x60]
test ecx, ecx
je 0x4f7328
mov eax, dword [esp + 0x60]
mov dword [esp], eax
call fcn.004f8510
mov eax, dword [esp + 0x68]
cmp esi, eax
jb 0x4f733f
jmp 0x4f7349
sub eax, 1
cmp eax, esi
je 0x4f7345
cmp byte [eax - 1], 0x30
je 0x4f7338
mov dword [esp + 0x68], eax
mov dword [esp], edi
call fcn.004f8510
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x68]
mov ebx, dword [esp + 0x1c]
mov byte [eax], 0
mov dword [ebx], edi
mov edi, dword [esp + 0x28]
test edi, edi
je 0x4f736c
mov dword [edi], eax
mov eax, dword [esp + 0x40]
mov ebx, dword [esp + 0x44]
or dword [eax], ebx
add esp, 0xcc
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
fild dword [esp + 0x50]
fucompi st(1)
fstp st(0)
jp 0x4f7398
je 0x4f6b93
sub dword [esp + 0x50], 1
jmp 0x4f6b93
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x60], 0
mov esi, dword [esp + 0x84]
mov dword [esp + 0x78], eax
jmp 0x4f7198
sub dword [esp + 0x50], 1
mov dword [esp + 0x8c], 0
jmp 0x4f6d2b
sub eax, 4
xor ebp, ebp
mov dword [esp + 0x20], eax
cmp eax, 4
je 0x4f7414
cmp eax, 5
je 0x4f78c5
mov dword [esp + 0x88], 0
cmp eax, 2
je 0x4f741f
mov dword [esp + 0x20], 3
jmp 0x4f6dd8
mov dword [esp + 0x88], 1
mov edx, dword [esp + 0x30]
mov eax, 1
test edx, edx
cmovg eax, edx
mov dword [esp + 0xa0], eax
mov edx, eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x30], eax
jmp 0x4f6dff
fstp st(0)
mov dword [esp + 0x48], 0
mov dword [esp + 0x60], 0
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x68]
mov dword [esp + 0x44], 0x10
neg eax
mov dword [esp + 0x3c], eax
jmp 0x4f7308
mov eax, dword [esp + 0x80]
mov esi, dword [esp + 0x88]
add eax, 1
mov dword [esp + 0x3c], eax
test esi, esi
je 0x4f7730
mov eax, dword [esp + 0x78]
add ebx, eax
test ebx, ebx
jle 0x4f74ab
mov eax, dword [esp + 0x60]
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.004f8a10
mov dword [esp + 0x60], eax
mov ebx, dword [esp + 0x50]
mov esi, dword [esp + 0x60]
test ebx, ebx
jne 0x4f7e17
mov eax, dword [esp + 0x68]
mov ebp, dword [esp + 0x60]
mov dword [esp + 0x38], eax
mov eax, 1
jmp 0x4f7595
mov dword [esp], eax
call fcn.004f8510
mov eax, 1
test ebx, ebx
js 0x4f7c9e
or ebx, dword [esp + 0x20]
jne 0x4f7500
mov ebx, dword [esp + 0x2c]
test byte [ebx], 1
je 0x4f7c9e
mov ebx, dword [esp + 0x38]
add ebx, 1
mov edx, ebx
test eax, eax
jle 0x4f7518
cmp dword [esp + 0x70], 2
jne 0x4f7e80
movzx eax, byte [esp + 0x30]
mov byte [ebx - 1], al
mov eax, dword [esp + 0x58]
cmp dword [esp + 0xbc], eax
je 0x4f7eaf
mov dword [esp], edi
mov dword [esp + 8], 0
mov dword [esp + 4], 0xa
call fcn.004f8580
mov dword [esp + 8], 0
mov dword [esp + 4], 0xa
mov edi, eax
mov dword [esp], ebp
cmp ebp, esi
je 0x4f76a0
call fcn.004f8580
mov dword [esp], esi
mov dword [esp + 8], 0
mov ebp, eax
mov dword [esp + 4], 0xa
call fcn.004f8580
mov esi, eax
mov eax, dword [esp + 0xbc]
mov dword [esp + 0x38], ebx
add eax, 1
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0x48]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.004f6790
mov dword [esp + 4], ebp
mov dword [esp], edi
lea ebx, [eax + 0x30]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x50], eax
call fcn.004f8b50
mov dword [esp + 4], esi
mov ebx, eax
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call fcn.004f8ba0
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x4f74d8
mov dword [esp + 4], eax
mov dword [esp], edi
mov dword [esp + 0x6c], eax
call fcn.004f8b50
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x60], eax
mov dword [esp], edx
call fcn.004f8510
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x20]
or eax, edx
jne 0x4f7a80
mov ecx, dword [esp + 0x2c]
mov ecx, dword [ecx]
mov edx, ecx
mov dword [esp + 0x60], ecx
and edx, 1
or edx, dword [esp + 0x70]
jne 0x4f74e5
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x60], ebp
cmp ecx, 0x39
je 0x4f8125
test ebx, ebx
jle 0x4f8183
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x44], 0x20
add ecx, 0x31
mov eax, dword [esp + 0x38]
mov ebp, dword [esp + 0x60]
mov dword [esp + 0x60], esi
mov byte [eax], cl
lea ebx, [eax + 1]
lea esi, [esi]
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call fcn.004f8510
mov eax, dword [esp + 0x60]
test eax, eax
je 0x4f7b37
test ebp, ebp
je 0x4f7690
cmp ebp, eax
je 0x4f7690
mov dword [esp], ebp
call fcn.004f8510
mov esi, dword [esp + 0x68]
mov dword [esp + 0x68], ebx
jmp 0x4f731c
call fcn.004f8580
mov ebp, eax
mov esi, eax
jmp 0x4f7587
mov eax, dword [esp + 0x48]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.004f8b50
test eax, eax
jns 0x4f7290
mov dword [esp], edi
mov eax, dword [esp + 0x80]
mov dword [esp + 8], 0
mov dword [esp + 4], 0xa
sub eax, 1
mov ebp, eax
call fcn.004f8580
mov edi, eax
mov eax, dword [esp + 0xa0]
test eax, eax
setle al
and esi, eax
mov eax, dword [esp + 0x88]
test eax, eax
jne 0x4f8009
mov eax, esi
test al, al
jne 0x4f7f88
mov eax, dword [esp + 0x80]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x58], eax
lea esi, [esi]
nop
mov edx, dword [esp + 0x68]
mov esi, dword [esp + 0x48]
mov eax, 1
mov ebp, dword [esp + 0x58]
mov ebx, edx
jmp 0x4f776c
mov dword [esp], edi
mov dword [esp + 8], 0
mov dword [esp + 4], 0xa
call fcn.004f8580
mov edi, eax
mov eax, dword [esp + 0xbc]
add eax, 1
mov dword [esp + 4], esi
add ebx, 1
mov dword [esp], edi
mov dword [esp + 0xbc], eax
call fcn.004f6790
add eax, 0x30
mov byte [ebx - 1], al
cmp dword [esp + 0xbc], ebp
jl 0x4f7748
mov ecx, eax
mov edx, ebx
xor ebp, ebp
mov esi, dword [esp + 0x70]
test esi, esi
je 0x4f7c0f
mov eax, dword [edi + 0x10]
cmp esi, 2
je 0x4f7c54
cmp eax, 1
jg 0x4f7b06
mov eax, dword [edi + 0x14]
test eax, eax
jne 0x4f7b06
test eax, eax
mov ebx, edx
setne al
movzx eax, al
shl eax, 4
mov dword [esp + 0x44], eax
jmp 0x4f7668
mov eax, dword [esp + 0x50]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call fcn.004f8890
cmp dword [esp + 0x20], 1
mov dword [esp + 0x48], eax
jle 0x4f7b7e
mov dword [esp + 0x50], 0
mov esi, dword [esp + 0x48]
mov eax, dword [esi + 0x10]
bsr ebx, dword [esi + eax*4 + 0x10]
xor ebx, 0x1f
jmp 0x4f7225
cmp ebx, 1
jne 0x4f7220
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 4]
add eax, 1
cmp dword [esp + 0x38], eax
jle 0x4f7220
add dword [esp + 0x7c], 1
add dword [esp + 0x6c], 1
mov dword [esp + 0x50], 1
jmp 0x4f7220
mov edx, dword [esp + 0x58]
mov esi, dword [esp + 0x84]
lea eax, [edx - 1]
cmp esi, eax
jl 0x4f7b44
sub esi, eax
test edx, edx
jns 0x4f804e
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0xbc], 0
sub eax, ecx
mov dword [esp + 0x78], eax
jmp 0x4f7188
cmp dword [esp + 0x20], 1
jg 0x4f7858
mov ecx, dword [esp + 0x7c]
add dword [esp + 0x6c], eax
mov esi, dword [esp + 0x84]
add eax, ecx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], eax
jmp 0x4f7188
mov dword [esp + 0x88], 1
jmp 0x4f6dd8
fmulp st(1)
fld qword [esp + 0x60]
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x60], edi
mov dword [esp + 0xbc], 1
mov edi, dword [esp + 0x98]
xor ebp, ebp
fld st(0)
jmp 0x4f7912
add edx, 1
fmul dword [0x5329d4]
mov ebp, esi
mov dword [esp + 0xbc], edx
fst qword [esp + 0x48]
cvttsd2si eax, qword [esp + 0x48]
test eax, eax
je 0x4f792c
mov dword [esp + 0x48], eax
fild dword [esp + 0x48]
mov ebp, esi
fsubp st(1)
add ecx, 1
add eax, 0x30
mov byte [ecx - 1], al
mov edx, dword [esp + 0xbc]
cmp edx, edi
jne 0x4f7900
mov edx, ebp
mov edi, dword [esp + 0x60]
test dl, dl
fcmove st(0), st(1)
fstp st(1)
fld dword [0x5329e4]
fld st(2)
fadd st(1)
fxch st(2)
fcomi st(2)
fstp st(2)
ja 0x4f7f9f
fsubrp st(2)
fxch st(1)
fcompi st(1)
ja 0x4f806e
fstp st(0)
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x64], edx
test eax, eax
js 0x4f7fe5
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x14]
test eax, eax
js 0x4f7fe5
mov edx, dword [esp + 0x30]
fld qword [0x532a20]
test edx, edx
jns 0x4f79b4
cmp dword [esp + 0x58], 0
jle 0x4f70bd
xor eax, eax
mov dword [esp + 0x70], eax
fld qword [esp + 0x60]
mov esi, dword [esp + 0x68]
mov dword [esp + 0xbc], 1
lea edx, [esi + 1]
fld st(0)
fdiv st(2)
fstp qword [esp + 0x20]
cvttsd2si ecx, qword [esp + 0x20]
mov dword [esp + 0x20], ecx
fild dword [esp + 0x20]
lea eax, [ecx + 0x30]
mov byte [esi], al
mov eax, dword [esp + 0x80]
fmul st(2)
add eax, 1
mov dword [esp + 0x3c], eax
fsubp st(1)
fldz
fxch st(1)
fucomi st(1)
fstp st(1)
jp 0x4f7a28
lea esi, [esi]
nop
jne 0x4f7a28
fstp st(0)
fstp st(0)
mov esi, dword [esp + 0x68]
mov dword [esp + 0x68], edx
jmp 0x4f7328
mov eax, dword [esp + 0xbc]
mov esi, dword [esp + 0x58]
cmp eax, esi
je 0x4f7c70
fmul dword [0x5329d4]
add eax, 1
add edx, 1
mov dword [esp + 0xbc], eax
fld st(0)
fdiv st(2)
fstp qword [esp + 0x20]
cvttsd2si ecx, qword [esp + 0x20]
mov dword [esp + 0x20], ecx
fild dword [esp + 0x20]
lea eax, [ecx + 0x30]
mov byte [edx - 1], al
fmul st(2)
fsubp st(1)
fldz
fxch st(1)
fucomi st(1)
fstp st(1)
jnp 0x4f7a10
jmp 0x4f7a28
mov eax, dword [esp + 0x60]
jmp 0x4f74e5
fstp st(0)
fld qword [esp + 0x70]
fadd st(0)
fadd dword [0x5329dc]
fstp qword [esp + 0x60]
mov eax, dword [esp + 0x60]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x64]
sub eax, 0x3400000
mov dword [esp + 0x94], eax
fld qword [esp + 0x70]
fsub dword [0x5329e0]
fld qword [esp + 0x90]
fxch st(1)
fcomi st(1)
ja 0x4f7e5b
fxch st(1)
fchs
fcompi st(1)
fstp st(0)
ja 0x4f7445
jmp 0x4f7ae9
fstp st(0)
fstp st(0)
jmp 0x4f7ae9
fstp st(0)
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov dword [esp + 0x70], 0
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], edx
jmp 0x4f7080
mov ecx, dword [esp + 0x68]
jmp 0x4f7b18
cmp edx, ecx
je 0x4f7bb8
mov ebx, edx
lea edx, [edx - 1]
movzx eax, byte [ebx - 1]
cmp al, 0x39
je 0x4f7b10
add eax, 1
mov dword [esp + 0x44], 0x20
mov byte [edx], al
jmp 0x4f7668
mov esi, dword [esp + 0x68]
mov dword [esp + 0x68], ebx
jmp 0x4f7328
mov esi, dword [esp + 0x84]
mov edx, eax
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x84], eax
add dword [esp + 0x6c], ecx
sub edx, esi
add dword [esp + 0x50], edx
mov edx, dword [esp + 0x7c]
xor esi, esi
mov dword [esp + 0xbc], ecx
add ecx, edx
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], ecx
jmp 0x4f7188
cmp ebx, 1
jne 0x4f7803
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
mov eax, dword [eax + 4]
add eax, 1
cmp eax, esi
jge 0x4f7803
add dword [esp + 0x7c], 1
add dword [esp + 0x6c], 1
mov dword [esp + 0x50], 1
jmp 0x4f780b
mov eax, dword [esp + 0x68]
add dword [esp + 0x3c], 1
mov dword [esp + 0x44], 0x20
mov byte [eax], 0x31
jmp 0x4f7668
mov eax, dword [esp + 0x60]
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.004f8890
mov dword [esp + 4], edi
mov dword [esp], eax
mov dword [esp + 0x60], eax
call fcn.004f8710
mov dword [esp], edi
mov ebp, eax
mov edi, ebp
call fcn.004f8510
sub dword [esp + 0x84], esi
je 0x4f71f9
jmp 0x4f71e4
mov dword [esp], edi
mov dword [esp + 4], 1
mov dword [esp + 0x20], edx
mov dword [esp + 0x2c], ecx
call fcn.004f8a10
mov edi, eax
mov eax, dword [esp + 0x48]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.004f8b50
mov edx, dword [esp + 0x20]
test eax, eax
jg 0x4f7b06
jne 0x4f7c54
mov ecx, dword [esp + 0x2c]
and ecx, 1
jne 0x4f7b06
cmp dword [edi + 0x10], 1
mov dword [esp + 0x44], 0x10
mov ebx, edx
jg 0x4f7668
mov eax, dword [edi + 0x14]
jmp 0x4f77c3
mov eax, dword [esp + 0x70]
test eax, eax
je 0x4f7f46
fstp st(0)
fstp st(0)
cmp eax, 1
je 0x4f7f6b
mov esi, dword [esp + 0x68]
mov dword [esp + 0x44], 0x10
mov dword [esp + 0x68], edx
jmp 0x4f7328
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x60], ebp
test edx, edx
je 0x4f7ed2
cmp dword [edi + 0x10], 1
jle 0x4f80db
cmp dword [esp + 0x70], 2
je 0x4f7f2a
mov ebx, esi
mov dword [esp + 0x20], ecx
mov esi, dword [esp + 0x60]
jmp 0x4f7d3e
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.004f8580
mov dword [esp], edi
cmp esi, ebx
mov dword [esp + 8], 0
cmove esi, eax
mov ebp, eax
mov dword [esp + 4], 0xa
mov ebx, ebp
call fcn.004f8580
mov edi, eax
mov eax, dword [esp + 0x48]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.004f6790
mov ecx, dword [esp + 0x2c]
add eax, 0x30
mov dword [esp + 0x20], eax
mov dword [esp + 0x38], ecx
mov eax, dword [esp + 0x48]
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.004f8b50
mov edx, dword [esp + 0x38]
lea ecx, [edx + 1]
test eax, eax
jg 0x4f7cd8
mov dword [esp + 0x60], esi
mov ebp, esi
mov esi, ebx
mov ebx, ecx
mov ecx, dword [esp + 0x20]
cmp ecx, 0x39
je 0x4f812c
mov dword [esp + 0x60], esi
add ecx, 1
mov dword [esp + 0x44], 0x20
mov eax, dword [esp + 0x38]
mov byte [eax], cl
jmp 0x4f7668
mov edx, dword [esp + 0x58]
test edx, edx
je 0x4f7a89
mov ecx, dword [esp + 0xa0]
test ecx, ecx
jle 0x4f7ae7
fmul dword [0x5329d4]
mov dword [esp + 0xa4], 0xffffffff
fst qword [esp + 0xa8]
mov eax, dword [esp + 0xa8]
mov edx, dword [esp + 0xac]
fmul dword [0x5329d8]
fadd dword [0x5329dc]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], edx
fstp qword [esp + 0x98]
mov eax, dword [esp + 0x98]
mov dword [esp + 0x98], ecx
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x9c]
sub eax, 0x3400000
mov dword [esp + 0x94], eax
jmp 0x4f6f04
mov eax, dword [esi + 4]
mov dword [esp], eax
call fcn.004f8430
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 sub.msvcrt.dll_memcpy
mov dword [esp + 4], 1
mov dword [esp], ebx
call fcn.004f8a10
mov esi, eax
jmp 0x4f74bb
fstp st(0)
fstp st(0)
mov dword [esp + 0x3c], 2
mov esi, dword [esp + 0x68]
mov dword [esp + 0x48], 0
mov dword [esp + 0x60], 0
jmp 0x4f72f8
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x60], ebp
cmp ecx, 0x39
je 0x4f812c
mov eax, dword [esp + 0x38]
add ecx, 1
mov ebp, dword [esp + 0x60]
mov dword [esp + 0x44], 0x20
mov dword [esp + 0x60], esi
mov byte [eax], cl
jmp 0x4f7668
mov dword [esp + 0x60], esi
mov ecx, dword [esp + 0x30]
jmp 0x4f7797
add dword [esp + 0xa4], 1
mov eax, 0x31
mov dword [esp + 0x68], ecx
jmp 0x4f6ffc
test eax, eax
jle 0x4f7f20
mov dword [esp], edi
mov dword [esp + 4], 1
mov dword [esp + 0x20], ecx
call fcn.004f8a10
mov edi, eax
mov eax, dword [esp + 0x48]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.004f8b50
mov ecx, dword [esp + 0x20]
test eax, eax
jle 0x4f8146
cmp ecx, 0x39
je 0x4f815e
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x70], 0x20
add ecx, 0x31
cmp dword [edi + 0x10], 1
jle 0x4f8102
mov eax, dword [esp + 0x38]
mov ebp, dword [esp + 0x60]
mov dword [esp + 0x44], 0x10
mov dword [esp + 0x60], esi
lea ebx, [eax + 1]
jmp 0x4f7d83
fadd st(0)
fcomi st(1)
ja 0x4f7f67
fucompi st(1)
fstp st(0)
jp 0x4f7c89
jne 0x4f7c89
and cl, 1
je 0x4f7c89
jmp 0x4f7f6b
fstp st(0)
fstp st(0)
mov ebx, dword [esp + 0x80]
movzx eax, byte [edx - 1]
mov ecx, edx
mov esi, dword [esp + 0x68]
mov dword [esp + 0xa4], ebx
jmp 0x4f6fee
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x80], ebp
mov dword [esp + 0x58], eax
jmp 0x4f72a6
fstp st(0)
fstp st(0)
fstp st(0)
mov esi, dword [esp + 0x68]
jmp 0x4f6fee
fstp st(0)
fldz
xor eax, eax
mov ecx, 1
mov esi, dword [esp + 0x68]
fucompi st(1)
fstp st(0)
mov dword [esp + 0x68], edx
setp al
cmovne eax, ecx
shl eax, 4
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0xa4]
add eax, 1
mov dword [esp + 0x3c], eax
jmp 0x4f7328
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x70], 0
mov dword [esp + 0x60], 0
mov esi, dword [esp + 0x84]
mov dword [esp + 0x78], eax
jmp 0x4f7198
mov eax, dword [esp + 0x60]
mov dword [esp + 8], 0
mov dword [esp + 4], 0xa
mov dword [esp], eax
call fcn.004f8580
mov dword [esp + 0x60], eax
mov eax, esi
test al, al
jne 0x4f7f88
mov eax, dword [esp + 0x80]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x58], eax
jmp 0x4f748d
mov ecx, dword [esp + 0x7c]
mov eax, edx
add dword [esp + 0x6c], edx
mov dword [esp + 0xbc], edx
add eax, ecx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], eax
jmp 0x4f7188
fldz
xor eax, eax
mov edx, 1
mov esi, dword [esp + 0x68]
fucompi st(1)
fstp st(0)
mov dword [esp + 0x68], ecx
setp al
cmovne eax, edx
shl eax, 4
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0xa4]
add eax, 1
mov dword [esp + 0x3c], eax
jmp 0x4f7328
mov ecx, dword [esp + 0x58]
mov esi, dword [esp + 0x84]
lea eax, [ecx - 1]
cmp esi, eax
jl 0x4f7b44
mov edx, dword [esp + 0x7c]
sub esi, eax
mov eax, ecx
add dword [esp + 0x6c], ecx
mov dword [esp + 0xbc], ecx
add eax, edx
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], eax
jmp 0x4f7188
mov ebp, dword [edi + 0x14]
test ebp, ebp
jne 0x4f7cbc
test eax, eax
jg 0x4f7ed6
mov eax, dword [esp + 0x38]
mov ebp, dword [esp + 0x60]
mov dword [esp + 0x60], esi
lea ebx, [eax + 1]
jmp 0x4f7d83
mov ebx, dword [edi + 0x14]
mov ebp, dword [esp + 0x60]
mov dword [esp + 0x60], esi
test ebx, ebx
je 0x4f816f
mov eax, dword [esp + 0x38]
mov dword [esp + 0x44], 0x10
lea ebx, [eax + 1]
jmp 0x4f7d83
mov eax, dword [esp + 0x38]
lea ebx, [eax + 1]
mov ebp, dword [esp + 0x60]
mov dword [esp + 0x60], esi
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x68]
mov edx, ebx
mov byte [eax], 0x39
jmp 0x4f7b18
jne 0x4f8151
test cl, 1
jne 0x4f7f08
mov dword [esp + 0x70], 0x20
jmp 0x4f7f20
mov eax, dword [esp + 0x38]
mov ebp, dword [esp + 0x60]
mov dword [esp + 0x60], esi
lea ebx, [eax + 1]
jmp 0x4f8134
mov eax, dword [esp + 0x70]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x38]
lea ebx, [eax + 1]
jmp 0x4f7d83
cmp dword [edi + 0x10], 1
mov dword [esp + 0x44], 0x10
jg 0x4f7651
xor eax, eax
cmp dword [edi + 0x14], 0
setne al
shl eax, 4
mov dword [esp + 0x44], eax
jmp 0x4f7651