Function at 0x4183d0
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 0x4181a0
mov eax, 4
xor edi, edi
nop
add eax, eax
add edi, 1
lea edx, [eax + 0xf]
cmp ecx, edx
jg 0x418150
mov dword [esp], edi
call fcn.0041acc0
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 0x41818f
lea esi, cs:[esi]
movzx ecx, byte [edx]
add eax, 1
add edx, 1
mov byte [eax], cl
test cl, cl
jne 0x418180
test ebx, ebx
je 0x418195
mov dword [ebx], eax
add esp, 0x10
mov eax, edi
pop ebx
pop esi
pop edi
ret
xor edi, edi
jmp 0x41815c
push ebp
push edi
push esi
push ebx
sub esp, 0xac
mov eax, dword [esp + 0xc4]
mov esi, dword [esp + 0xd0]
mov ecx, dword [esp + 0xdc]
mov edx, dword [esp + 0xc0]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xc8]
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0xd8]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0xcc]
mov dword [esp + 0x10], esi
mov edi, dword [esp + 0xd4]
mov esi, dword [eax]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], ecx
mov ecx, eax
mov eax, esi
mov dword [esp + 0x28], edx
and eax, 0xffffffcf
mov dword [esp + 0x24], edi
mov dword [ecx], eax
mov eax, esi
and eax, 7
cmp eax, 3
je 0x418700
mov edi, esi
and edi, 4
mov dword [esp + 0x30], edi
jne 0x418678
test eax, eax
je 0x4186c8
mov edi, dword [edx]
mov eax, 0x20
xor edx, edx
mov dword [esp + 0x34], edi
mov ecx, dword [esp + 0x34]
cmp edi, 0x20
jle 0x418489
lea esi, cs:[esi]
add eax, eax
add edx, 1
cmp ecx, eax
jg 0x418480
mov dword [esp], edx
call fcn.0041acc0
mov ebp, eax
mov eax, dword [esp + 0x34]
lea edx, [ebp + 0x14]
lea ebx, [eax - 1]
mov eax, dword [esp + 0x1c]
sar ebx, 5
lea ecx, [eax + ebx*4]
lea esi, cs:[esi]
nop
mov edi, dword [eax]
add eax, 4
add edx, 4
mov dword [edx - 4], edi
cmp ecx, eax
jae 0x4184b0
mov eax, dword [esp + 0x1c]
add ecx, 1
lea ebx, [ebx*4 + 4]
add eax, 1
cmp ecx, eax
mov eax, 4
cmovb ebx, eax
sar ebx, 2
jmp 0x4184e8
test ebx, ebx
je 0x418740
mov eax, ebx
sub ebx, 1
mov edi, dword [ebp + ebx*4 + 0x14]
test edi, edi
je 0x4184e0
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.0041a760
mov edi, dword [esp + 0x20]
mov dword [esp + 0x9c], eax
mov dword [esp + 0x5c], edi
test eax, eax
jne 0x418750
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4186c0
lea eax, [esp + 0x9c]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.0041b660
mov edi, dword [esp + 0x5c]
fstp qword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
add edi, ebx
and edx, 0xfffff
mov dword [esp + 0x48], eax
lea ecx, [edi - 1]
mov eax, 1
or edx, 0x3ff00000
sub eax, edi
mov dword [esp + 0x38], ecx
test ecx, ecx
mov dword [esp + 0x4c], edx
fld qword [esp + 0x48]
cmovns eax, ecx
fsub dword [0x4bd000]
fmul qword [str.aCoc]
sub eax, 0x435
fadd qword [0x4bd010]
fild dword [esp + 0x38]
fmul qword [0x4bd018]
faddp st(1)
test eax, eax
jle 0x4185b8
mov dword [esp + 0x38], eax
fild dword [esp + 0x38]
fmul qword [0x4bd020]
faddp st(1)
fnstcw word [esp + 0x8e]
movzx eax, word [esp + 0x8e]
or ah, 0xc
mov word [esp + 0x8c], ax
fldcw word [esp + 0x8c]
fist dword [esp + 0x38]
fldcw word [esp + 0x8e]
fldz
fcompi st(1)
ja 0x418d90
fstp st(0)
mov eax, ecx
shl eax, 0x14
add eax, edx
mov dword [esp + 0x4c], eax
mov eax, ebx
sub eax, ecx
lea ecx, [eax - 1]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x38]
cmp ecx, 0x16
ja 0x418778
fld qword [ecx*8 + 0x4bd080]
fst qword [esp + 0x40]
fld qword [esp + 0x48]
fxch st(1)
fcompi st(1)
fstp st(0)
ja 0x418dd0
mov dword [esp + 0x70], 0
mov dword [esp + 0x60], 0
test eax, eax
jg 0x418658
mov edx, 1
mov dword [esp + 0x58], 0
sub edx, eax
mov dword [esp + 0x60], edx
lea esi, [esi]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x68], 0
add dword [esp + 0x58], edx
mov dword [esp + 0x64], edx
jmp 0x4187cb
xor esi, esi
cmp eax, 4
jne 0x4186f0
mov eax, dword [esp + 0x10]
mov dword [eax], 0xffff8000
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc8], 3
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc0], 0x4bcff9
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
jmp 0x418130
mov dword [esp], ebp
call fcn.0041ada0
mov eax, dword [esp + 0x10]
mov dword [eax], 1
mov eax, dword [esp + 0x14]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], 0x4bcffd
call 0x418130
mov esi, eax
add esp, 0xac
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x10]
mov dword [eax], 0xffff8000
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc8], 8
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc0], str.Infinity
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
jmp 0x418130
mov dword [ebp + 0x10], 0
jmp 0x418507
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.0041a630
mov eax, dword [esp + 0x9c]
mov edi, dword [esp + 0x20]
add edi, eax
sub ebx, eax
mov dword [esp + 0x5c], edi
jmp 0x418526
mov dword [esp + 0x70], 1
mov edx, dword [esp + 0x58]
mov dword [esp + 0x60], 0
test edx, edx
jns 0x4187a3
mov edx, 1
mov dword [esp + 0x58], 0
sub edx, eax
mov dword [esp + 0x60], edx
mov eax, dword [esp + 0x38]
test eax, eax
jns 0x418658
mov eax, dword [esp + 0x38]
sub dword [esp + 0x60], eax
mov dword [esp + 0x38], 0
mov edx, eax
mov dword [esp + 0x64], eax
neg edx
mov dword [esp + 0x68], edx
mov eax, dword [esp + 0x18]
cmp eax, 9
ja 0x418a50
cmp eax, 5
jg 0x418de8
add edi, 0x3fd
xor eax, eax
cmp edi, 0x7f7
setbe al
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x18]
cmp eax, 4
je 0x418e1f
cmp eax, 5
je 0x4192ea
mov dword [esp + 0x6c], 0
cmp eax, 2
je 0x418e27
cmp eax, 3
jne 0x418a58
mov eax, dword [esp + 0x64]
mov edi, dword [esp + 0x24]
mov edx, 1
add eax, edi
mov dword [esp + 0x74], eax
add eax, 1
test eax, eax
mov dword [esp + 0x40], eax
cmovg edx, eax
mov eax, edx
mov dword [esp], eax
mov dword [esp + 0x9c], edx
call fcn.004180f0
mov edi, eax
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0xc]
sub eax, 1
mov dword [esp + 0x50], eax
je 0x41888c
mov eax, 2
cmovns eax, dword [esp + 0x50]
and esi, 8
mov dword [esp + 0x50], eax
mov ecx, eax
je 0x418ab4
mov eax, 3
sub eax, ecx
mov dword [esp + 0x50], eax
cmp dword [esp + 0x40], 0xe
setbe cl
and cl, byte [esp + 0x78]
test cl, cl
je 0x418ab4
mov eax, dword [esp + 0x64]
or eax, dword [esp + 0x50]
jne 0x418ab4
fld qword [esp + 0x48]
mov eax, dword [esp + 0x70]
mov dword [esp + 0x9c], 0
fst qword [esp + 0x50]
test eax, eax
je 0x4188d7
fld1
fcompi st(1)
ja 0x4197b3
fstp st(0)
jmp 0x4188d9
fstp st(0)
fld qword [esp + 0x50]
fadd st(0)
fadd dword [0x4bd03c]
fstp qword [esp + 0x78]
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
mov dword [esp + 0x78], eax
mov eax, edx
mov edx, dword [esp + 0x40]
sub eax, 0x3400000
mov dword [esp + 0x7c], eax
test edx, edx
je 0x419329
fld qword [esp + 0x50]
mov esi, dword [esp + 0x40]
mov dword [esp + 0x88], 0
fstp qword [esp + 0x80]
mov eax, dword [esp + 0x6c]
fld qword [esp + 0x78]
fld qword [esi*8 + 0x4bd078]
test eax, eax
je 0x419578
fnstcw word [esp + 0x8e]
fdivr dword [0x4bd044]
lea edx, [edi + 1]
movzx eax, word [esp + 0x8e]
or ah, 0xc
mov word [esp + 0x8c], ax
fsubrp st(1)
fld qword [esp + 0x80]
fldcw word [esp + 0x8c]
fist dword [esp + 0x48]
fldcw word [esp + 0x8e]
fild dword [esp + 0x48]
movzx eax, byte [esp + 0x48]
add eax, 0x30
fsubp st(1)
fxch st(1)
mov byte [edi], al
fcomi st(1)
jbe 0x4189f5
fstp st(0)
jmp 0x4199be
mov eax, dword [esp + 0x9c]
add eax, 1
mov dword [esp + 0x9c], eax
cmp eax, esi
jge 0x419351
fld dword [0x4bd034]
add edx, 1
fmul st(1), st(0)
fmulp st(2)
fxch st(1)
fldcw word [esp + 0x8c]
fist dword [esp + 0x48]
fldcw word [esp + 0x8e]
fild dword [esp + 0x48]
movzx eax, byte [esp + 0x48]
add eax, 0x30
fsubp st(1)
fxch st(1)
mov byte [edx - 1], al
fcomi st(1)
ja 0x4199bc
fld st(1)
fsubr dword [0x4bd030]
fxch st(1)
fcomi st(1)
fstp st(1)
jbe 0x4189a0
fstp st(0)
fstp st(0)
mov esi, edi
movzx eax, byte [edx - 1]
mov edi, edx
jmp 0x418a26
cmp edx, esi
je 0x4198e2
movzx eax, byte [edx - 1]
mov edi, edx
lea edx, [edi - 1]
cmp al, 0x39
je 0x418a18
add eax, 1
mov byte [edx], al
mov eax, dword [esp + 0x88]
mov dword [esp + 0x30], 0x20
add eax, 1
mov dword [esp + 0x28], eax
jmp 0x418d3f
mov dword [esp + 0x18], 0
fild dword [esp + 0x34]
fmul qword [0x4bd028]
fldcw word [esp + 0x8c]
fistp dword [esp + 0x24]
fldcw word [esp + 0x8e]
mov eax, dword [esp + 0x24]
add eax, 3
mov dword [esp], eax
mov dword [esp + 0x9c], eax
call fcn.004180f0
mov dword [esp + 0x24], 0
mov dword [esp + 0x50], 0
mov edi, eax
mov dword [esp + 0x6c], 1
mov dword [esp + 0x74], 0xffffffff
mov dword [esp + 0x40], 0xffffffff
mov eax, dword [esp + 0x5c]
test eax, eax
js 0x418b30
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x64]
cmp eax, dword [esi + 0x14]
jg 0x418b30
fld qword [eax*8 + 0x4bd080]
mov eax, dword [esp + 0x24]
test eax, eax
jns 0x419376
mov eax, dword [esp + 0x40]
test eax, eax
jg 0x419376
jne 0x418e48
fmul dword [0x4bd040]
fld qword [esp + 0x48]
fxch st(1)
fcompi st(1)
fstp st(0)
jae 0x418e4a
mov eax, dword [esp + 0x64]
mov dword [esp + 0x34], 0
mov esi, edi
mov dword [esp + 0x48], 0
add eax, 2
mov dword [esp + 0x28], eax
jmp 0x418d11
mov esi, dword [esp + 0x6c]
test esi, esi
je 0x418db0
mov esi, dword [esp + 0x34]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x5c]
sub esi, ebx
mov edx, dword [edx + 4]
lea eax, [esi + 1]
sub ecx, esi
mov dword [esp + 0x9c], eax
cmp ecx, edx
jge 0x4192c8
mov esi, dword [esp + 0x18]
lea eax, [esi - 3]
and eax, 0xfffffffd
je 0x419288
mov eax, dword [esp + 0x5c]
sub eax, edx
cmp esi, 1
mov esi, dword [esp + 0x40]
setg dl
lea ecx, [eax + 1]
test esi, esi
mov dword [esp + 0x9c], ecx
setg al
test dl, al
je 0x418b9c
cmp ecx, esi
jg 0x419ab3
mov eax, dword [esp + 0x60]
add dword [esp + 0x58], ecx
mov esi, dword [esp + 0x68]
mov dword [esp + 0x5c], eax
add eax, ecx
mov dword [esp + 0x60], eax
mov dword [esp], 1
call fcn.0041aef0
mov dword [esp + 0x48], eax
mov edx, dword [esp + 0x5c]
test edx, edx
jle 0x418bf0
mov ecx, dword [esp + 0x58]
test ecx, ecx
jle 0x418bf0
cmp edx, ecx
mov eax, ecx
cmovle eax, edx
sub dword [esp + 0x60], eax
sub edx, eax
sub ecx, eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0x5c], edx
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x68]
test ecx, ecx
je 0x418c1a
mov edx, dword [esp + 0x6c]
test edx, edx
je 0x418c08
test esi, esi
jne 0x4194d5
mov eax, dword [esp + 0x68]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.0041b120
mov ebp, eax
mov dword [esp], 1
call fcn.0041aef0
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x419210
cmp dword [esp + 0x18], 1
jle 0x419250
mov ebx, 0x1f
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x60]
sub ebx, eax
sub ebx, 4
and ebx, 0x1f
add edx, ebx
mov dword [esp + 0x9c], ebx
mov eax, ebx
test edx, edx
jle 0x418c7a
mov dword [esp], ebp
mov dword [esp + 4], edx
call fcn.0041b2a0
mov ebp, eax
mov eax, dword [esp + 0x9c]
mov esi, dword [esp + 0x58]
add esi, eax
test esi, esi
jle 0x418c98
mov eax, dword [esp + 0x34]
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.0041b2a0
mov dword [esp + 0x34], eax
cmp dword [esp + 0x18], 2
setg al
mov esi, eax
mov eax, dword [esp + 0x70]
test eax, eax
jne 0x4190d0
mov eax, dword [esp + 0x40]
test eax, eax
jg 0x418e78
mov eax, esi
test al, al
je 0x418e78
mov ebx, dword [esp + 0x40]
test ebx, ebx
jne 0x418e5a
mov eax, dword [esp + 0x34]
mov dword [esp + 8], 0
mov dword [esp + 4], 5
mov dword [esp], eax
call fcn.0041ae10
mov dword [esp], ebp
mov dword [esp + 4], eax
mov dword [esp + 0x34], eax
call fcn.0041b3e0
test eax, eax
jle 0x418e5a
mov eax, dword [esp + 0x64]
mov esi, edi
add eax, 2
mov dword [esp + 0x28], eax
mov byte [esi], 0x31
add edi, 1
mov dword [esp + 0x30], 0x20
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call fcn.0041ada0
mov ecx, dword [esp + 0x48]
test ecx, ecx
je 0x418d3f
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call fcn.0041ada0
cmp esi, edi
jb 0x418d4f
jmp 0x418d55
sub edi, 1
cmp edi, esi
je 0x418d55
cmp byte [edi - 1], 0x30
je 0x418d48
mov dword [esp], ebp
call fcn.0041ada0
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x28]
mov byte [edi], 0
mov dword [eax], ebx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x418d74
mov dword [eax], edi
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x30]
or dword [eax], ebx
add esp, 0xac
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
fild dword [esp + 0x38]
fucompi st(1)
fstp st(0)
jp 0x418da0
je 0x4185f0
sub dword [esp + 0x38], 1
jmp 0x4185f0
mov eax, dword [esp + 0x60]
mov esi, dword [esp + 0x68]
mov dword [esp + 0x48], 0
mov dword [esp + 0x5c], eax
jmp 0x418bc2
sub dword [esp + 0x38], 1
mov dword [esp + 0x70], 0
jmp 0x418780
sub eax, 4
mov dword [esp + 0x78], 0
mov dword [esp + 0x18], eax
cmp eax, 4
je 0x418e1f
cmp eax, 5
je 0x4192ea
mov dword [esp + 0x6c], 0
cmp eax, 2
je 0x418e27
mov dword [esp + 0x18], 3
jmp 0x418826
mov dword [esp + 0x6c], 1
mov edi, dword [esp + 0x24]
mov eax, 1
test edi, edi
cmovg eax, edi
mov dword [esp + 0x74], eax
mov edx, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x24], eax
jmp 0x418847
fstp st(0)
mov dword [esp + 0x34], 0
mov dword [esp + 0x48], 0
mov eax, dword [esp + 0x24]
mov dword [esp + 0x30], 0x10
mov esi, edi
neg eax
mov dword [esp + 0x28], eax
jmp 0x418d1f
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x6c]
add eax, 1
mov dword [esp + 0x28], eax
test ecx, ecx
je 0x419140
mov eax, dword [esp + 0x5c]
add ebx, eax
test ebx, ebx
jle 0x418ead
mov eax, dword [esp + 0x48]
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.0041b2a0
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x24], eax
test edx, edx
jne 0x419825
mov dword [esp + 0x20], edi
mov esi, dword [esp + 0x24]
mov eax, 1
mov dword [esp + 0x5c], edi
mov edi, dword [esp + 0x48]
jmp 0x418f9d
mov dword [esp], edx
call fcn.0041ada0
mov eax, 1
test ebx, ebx
js 0x4196ba
or ebx, dword [esp + 0x18]
jne 0x418f08
mov ebx, dword [esp + 0x1c]
test byte [ebx], 1
je 0x4196ba
mov ebx, dword [esp + 0x20]
add ebx, 1
mov edx, ebx
test eax, eax
jle 0x418f20
cmp dword [esp + 0x50], 2
jne 0x419890
movzx eax, byte [esp + 0x24]
mov byte [ebx - 1], al
mov eax, dword [esp + 0x40]
cmp dword [esp + 0x9c], eax
je 0x4198cb
mov dword [esp], ebp
mov dword [esp + 8], 0
mov dword [esp + 4], 0xa
call fcn.0041ae10
mov dword [esp + 8], 0
mov dword [esp + 4], 0xa
mov ebp, eax
mov dword [esp], edi
cmp edi, esi
je 0x4190c0
call fcn.0041ae10
mov dword [esp], esi
mov dword [esp + 8], 0
mov edi, eax
mov dword [esp + 4], 0xa
call fcn.0041ae10
mov esi, eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x20], ebx
add eax, 1
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x34]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.004181d0
mov dword [esp + 4], edi
mov dword [esp], ebp
lea ecx, [eax + 0x30]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x38], eax
call fcn.0041b3e0
mov dword [esp + 4], esi
mov ebx, eax
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call fcn.0041b430
mov edx, eax
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x418ee0
mov dword [esp + 4], edx
mov dword [esp], ebp
mov dword [esp + 0x58], edx
call fcn.0041b3e0
mov edx, dword [esp + 0x58]
mov dword [esp + 0x48], eax
mov dword [esp], edx
call fcn.0041ada0
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x18]
or eax, ecx
jne 0x4192f7
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx]
mov edx, ecx
mov dword [esp + 0x48], ecx
and edx, 1
or edx, dword [esp + 0x50]
jne 0x418eed
mov edx, dword [esp + 0x24]
mov dword [esp + 0x48], edi
mov dword [esp + 0x24], esi
mov edi, dword [esp + 0x5c]
mov esi, dword [esp + 0x38]
cmp edx, 0x39
je 0x419b13
test ebx, ebx
jle 0x419b9c
mov dword [esp + 0x30], 0x20
lea edx, [esi + 0x31]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x48]
mov byte [eax], dl
lea ebx, [eax + 1]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x48], eax
lea esi, cs:[esi]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x18], ecx
mov dword [esp], eax
call fcn.0041ada0
mov eax, dword [esp + 0x48]
test eax, eax
je 0x41944b
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4190b0
cmp ecx, eax
je 0x4190b0
mov dword [esp], ecx
call fcn.0041ada0
mov esi, edi
mov edi, ebx
jmp 0x418d33
call fcn.0041ae10
mov edi, eax
mov esi, eax
jmp 0x418f8f
mov eax, dword [esp + 0x34]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.0041b3e0
test eax, eax
jns 0x418cae
mov dword [esp], ebp
mov eax, dword [esp + 0x64]
mov dword [esp + 8], 0
mov dword [esp + 4], 0xa
sub eax, 1
mov dword [esp + 0x20], eax
call fcn.0041ae10
mov ebp, eax
mov eax, dword [esp + 0x74]
test eax, eax
setle al
and esi, eax
mov eax, dword [esp + 0x6c]
test eax, eax
jne 0x419a21
mov eax, esi
test al, al
jne 0x4199a7
mov eax, dword [esp + 0x64]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x40], eax
nop
mov dword [esp + 0x18], edi
mov esi, edi
mov ebx, dword [esp + 0x34]
mov eax, 1
mov edi, dword [esp + 0x40]
jmp 0x41917c
mov dword [esp], ebp
mov dword [esp + 8], 0
mov dword [esp + 4], 0xa
call fcn.0041ae10
mov ebp, eax
mov eax, dword [esp + 0x9c]
add eax, 1
mov dword [esp + 4], ebx
add esi, 1
mov dword [esp], ebp
mov dword [esp + 0x9c], eax
call fcn.004181d0
add eax, 0x30
mov byte [esi - 1], al
cmp dword [esp + 0x9c], edi
jl 0x419158
mov edi, dword [esp + 0x18]
mov edx, eax
xor ecx, ecx
mov ebx, dword [esp + 0x50]
test ebx, ebx
je 0x419514
mov eax, dword [ebp + 0x10]
cmp ebx, 2
je 0x419559
cmp eax, 1
jg 0x4191f0
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x4191f0
test eax, eax
mov ebx, esi
setne al
movzx eax, al
shl eax, 4
mov dword [esp + 0x30], eax
jmp 0x419080
cmp esi, edi
je 0x4194c0
mov ebx, esi
lea esi, [esi - 1]
movzx eax, byte [ebx - 1]
cmp al, 0x39
je 0x4191e8
add eax, 1
mov dword [esp + 0x30], 0x20
mov byte [esi], al
jmp 0x419080
mov eax, dword [esp + 0x38]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call fcn.0041b120
cmp dword [esp + 0x18], 1
mov dword [esp + 0x34], eax
jle 0x419488
mov dword [esp + 0x38], 0
mov esi, dword [esp + 0x34]
mov eax, dword [esi + 0x10]
bsr ebx, dword [esi + eax*4 + 0x10]
xor ebx, 0x1f
jmp 0x418c46
cmp ebx, 1
jne 0x418c41
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 4]
add eax, 1
cmp dword [esp + 0x20], eax
jle 0x418c41
add dword [esp + 0x60], 1
add dword [esp + 0x58], 1
mov dword [esp + 0x38], 1
jmp 0x418c41
mov edx, dword [esp + 0x40]
mov esi, dword [esp + 0x68]
lea eax, [edx - 1]
cmp esi, eax
jl 0x419454
sub esi, eax
test edx, edx
jns 0x419a60
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x9c], 0
sub eax, ecx
mov dword [esp + 0x5c], eax
jmp 0x418bb2
cmp dword [esp + 0x18], 1
jg 0x419288
mov ecx, dword [esp + 0x60]
add dword [esp + 0x58], eax
mov esi, dword [esp + 0x68]
add eax, ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], eax
jmp 0x418bb2
mov dword [esp + 0x6c], 1
jmp 0x418826
mov eax, dword [esp + 0x48]
jmp 0x418eed
fstp st(0)
fld qword [esp + 0x50]
fadd st(0)
fadd dword [0x4bd03c]
fstp qword [esp + 0x48]
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x78], eax
mov eax, edx
sub eax, 0x3400000
mov dword [esp + 0x7c], eax
fld qword [esp + 0x50]
fsub dword [0x4bd040]
fld qword [esp + 0x78]
fxch st(1)
fcomi st(1)
ja 0x41986d
fxch st(1)
fchs
fcompi st(1)
fstp st(0)
ja 0x418e4a
jmp 0x419359
fstp st(0)
fstp st(0)
jmp 0x419359
fstp st(0)
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x50], 0
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edx
jmp 0x418ab4
fnstcw word [esp + 0x8e]
movzx eax, word [esp + 0x8e]
or ah, 0xc
mov word [esp + 0x8c], ax
fld qword [esp + 0x48]
lea edx, [edi + 1]
mov dword [esp + 0x9c], 1
fld st(0)
fdiv st(2)
fldcw word [esp + 0x8c]
fistp dword [esp + 0x18]
fldcw word [esp + 0x8e]
fild dword [esp + 0x18]
movzx eax, byte [esp + 0x18]
add eax, 0x30
fmul st(2)
mov byte [edi], al
mov eax, dword [esp + 0x64]
add eax, 1
mov dword [esp + 0x28], eax
fsubp st(1)
fldz
fxch st(1)
fucomi st(1)
fstp st(1)
jp 0x4193f0
nop
jne 0x4193f0
fstp st(0)
fstp st(0)
mov esi, edi
mov edi, edx
jmp 0x418d3f
mov eax, dword [esp + 0x9c]
mov esi, dword [esp + 0x40]
cmp eax, esi
je 0x419690
fmul dword [0x4bd034]
add eax, 1
add edx, 1
mov dword [esp + 0x9c], eax
fld st(0)
fdiv st(2)
fldcw word [esp + 0x8c]
fistp dword [esp + 0x18]
fldcw word [esp + 0x8e]
fild dword [esp + 0x18]
movzx eax, byte [esp + 0x18]
add eax, 0x30
fmul st(2)
mov byte [edx - 1], al
fsubp st(1)
fldz
fxch st(1)
fucomi st(1)
fstp st(1)
jnp 0x4193e0
jmp 0x4193f0
mov esi, edi
mov edi, ebx
jmp 0x418d3f
mov esi, dword [esp + 0x68]
mov edx, eax
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x68], eax
add dword [esp + 0x58], ecx
sub edx, esi
add dword [esp + 0x38], edx
mov edx, dword [esp + 0x60]
xor esi, esi
mov dword [esp + 0x9c], ecx
add ecx, edx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], ecx
jmp 0x418bb2
cmp ebx, 1
jne 0x419233
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x20]
mov eax, dword [eax + 4]
add eax, 1
cmp eax, esi
jge 0x419233
add dword [esp + 0x60], 1
add dword [esp + 0x58], 1
mov dword [esp + 0x38], 1
jmp 0x41923b
add dword [esp + 0x28], 1
mov byte [edi], 0x31
mov dword [esp + 0x30], 0x20
jmp 0x419080
mov eax, dword [esp + 0x48]
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.0041b120
mov dword [esp + 4], ebp
mov dword [esp], eax
mov dword [esp + 0x48], eax
call fcn.0041afa0
mov dword [esp], ebp
mov dword [esp + 0x34], eax
call fcn.0041ada0
sub dword [esp + 0x68], esi
mov ebp, dword [esp + 0x34]
je 0x418c1a
jmp 0x418c08
mov dword [esp], ebp
mov dword [esp + 4], 1
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
call fcn.0041b2a0
mov ebp, eax
mov eax, dword [esp + 0x34]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.0041b3e0
mov ecx, dword [esp + 0x18]
test eax, eax
jg 0x4191f0
jne 0x419559
mov edx, dword [esp + 0x1c]
and edx, 1
jne 0x4191f0
cmp dword [ebp + 0x10], 1
mov dword [esp + 0x30], 0x10
mov ebx, esi
jg 0x419080
mov eax, dword [ebp + 0x14]
jmp 0x4191cd
fnstcw word [esp + 0x8e]
fmulp st(1)
fld qword [esp + 0x48]
xor edx, edx
mov dword [esp + 0x48], ebp
mov ebp, edx
movzx eax, word [esp + 0x8e]
mov dword [esp + 0x34], edi
mov dword [esp + 0x9c], 1
fld st(0)
or ah, 0xc
mov dword [esp + 0x78], edi
mov word [esp + 0x8c], ax
jmp 0x4195d2
add edx, 1
fmul dword [0x4bd034]
mov ebp, ecx
mov dword [esp + 0x9c], edx
fldcw word [esp + 0x8c]
fist dword [esp + 0x34]
fldcw word [esp + 0x8e]
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4195f4
fild dword [esp + 0x34]
mov ebp, ecx
fsubp st(1)
add edi, 1
add eax, 0x30
mov byte [edi - 1], al
mov edx, dword [esp + 0x9c]
cmp edx, esi
jne 0x4195c0
mov ecx, ebp
mov dword [esp + 0x34], edi
mov ebp, dword [esp + 0x48]
test cl, cl
mov edi, dword [esp + 0x78]
fcmove st(0), st(1)
fstp st(1)
fld dword [0x4bd044]
fld st(2)
fadd st(1)
fxch st(2)
fcomi st(2)
fstp st(2)
ja 0x4199ef
fsubrp st(2)
fxch st(1)
fcompi st(1)
ja 0x419a80
fstp st(0)
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x4c], edx
test eax, eax
js 0x419a00
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0x14]
test eax, eax
js 0x419a00
mov edx, dword [esp + 0x24]
fld qword [0x4bd080]
test edx, edx
jns 0x419684
cmp dword [esp + 0x40], 0
jle 0x418aee
xor eax, eax
mov dword [esp + 0x50], eax
jmp 0x419390
mov eax, dword [esp + 0x50]
test eax, eax
je 0x419968
fstp st(0)
fstp st(0)
cmp eax, 1
je 0x41998f
mov esi, edi
mov dword [esp + 0x30], 0x10
mov edi, edx
jmp 0x418d3f
mov ebx, dword [esp + 0x50]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x48], edi
mov dword [esp + 0x24], esi
mov edi, dword [esp + 0x5c]
mov esi, dword [esp + 0x38]
test ebx, ebx
je 0x4198f4
cmp dword [ebp + 0x10], 1
jle 0x419ae8
cmp dword [esp + 0x50], 2
je 0x419948
mov dword [esp + 0x30], edi
mov esi, dword [esp + 0x24]
mov ebx, edx
mov edi, dword [esp + 0x48]
jmp 0x419761
mov byte [ecx - 1], bl
mov dword [esp], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 0xa
mov dword [esp + 0x1c], ecx
call fcn.0041ae10
mov dword [esp], ebp
cmp edi, esi
mov dword [esp + 8], 0
cmove edi, eax
mov dword [esp + 4], 0xa
mov dword [esp + 0x18], eax
call fcn.0041ae10
mov ebp, eax
mov eax, dword [esp + 0x34]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.004181d0
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
lea ebx, [eax + 0x30]
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x34]
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.0041b3e0
mov edx, dword [esp + 0x20]
lea ecx, [edx + 1]
test eax, eax
jg 0x419700
mov edx, ebx
mov dword [esp + 0x48], edi
mov eax, edi
mov ebx, ecx
mov dword [esp + 0x24], esi
mov edi, dword [esp + 0x30]
cmp edx, 0x39
je 0x419b1a
mov dword [esp + 0x48], esi
add edx, 1
mov ecx, eax
mov dword [esp + 0x30], 0x20
mov eax, dword [esp + 0x20]
mov byte [eax], dl
jmp 0x419080
mov esi, dword [esp + 0x40]
test esi, esi
je 0x419300
mov esi, dword [esp + 0x74]
test esi, esi
jle 0x419357
mov dword [esp + 0x88], 0xffffffff
fmul dword [0x4bd034]
fst qword [esp + 0x80]
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x84]
fmul dword [0x4bd038]
fadd dword [0x4bd03c]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edx
fstp qword [esp + 0x78]
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x78], eax
mov eax, edx
sub eax, 0x3400000
mov dword [esp + 0x7c], eax
jmp 0x418926
mov esi, eax
mov eax, dword [eax + 4]
mov dword [esp], eax
call fcn.0041acc0
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.0041b2a0
mov dword [esp + 0x24], eax
jmp 0x418ec1
fstp st(0)
fstp st(0)
mov dword [esp + 0x28], 2
mov esi, edi
mov dword [esp + 0x34], 0
mov dword [esp + 0x48], 0
jmp 0x418d11
mov edx, dword [esp + 0x24]
mov dword [esp + 0x48], edi
mov dword [esp + 0x24], esi
mov edi, dword [esp + 0x5c]
cmp edx, 0x39
je 0x419b1a
mov eax, dword [esp + 0x20]
add edx, 1
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x30], 0x20
mov byte [eax], dl
mov eax, dword [esp + 0x24]
mov dword [esp + 0x48], eax
jmp 0x419080
mov eax, esi
mov ecx, edi
mov esi, edx
mov edi, dword [esp + 0x5c]
mov dword [esp + 0x48], eax
mov edx, dword [esp + 0x24]
jmp 0x4191a9
add dword [esp + 0x88], 1
mov eax, 0x31
jmp 0x418a30
test eax, eax
jle 0x41993e
mov dword [esp], ebp
mov dword [esp + 4], 1
mov dword [esp + 0x18], edx
call fcn.0041b2a0
mov ebp, eax
mov eax, dword [esp + 0x34]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.0041b3e0
mov edx, dword [esp + 0x18]
test eax, eax
jle 0x419b5b
cmp edx, 0x39
je 0x419b73
mov dword [esp + 0x50], 0x20
lea edx, [esi + 0x31]
cmp dword [ebp + 0x10], 1
jle 0x419b34
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x30], 0x10
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x20]
lea ebx, [eax + 1]
jmp 0x4197a8
fadd st(0)
fcomi st(1)
ja 0x41998b
fucompi st(1)
fstp st(0)
jp 0x4196a9
jne 0x4196a9
test byte [esp + 0x18], 1
je 0x4196a9
jmp 0x41998f
fstp st(0)
fstp st(0)
mov ebx, dword [esp + 0x64]
mov esi, edi
movzx eax, byte [edx - 1]
mov edi, edx
mov dword [esp + 0x88], ebx
jmp 0x418a26
mov eax, dword [esp + 0x20]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x40], eax
jmp 0x418cc4
fstp st(0)
fldz
xor eax, eax
mov ecx, 1
mov esi, edi
fucompi st(1)
fstp st(0)
mov edi, edx
setp al
cmovne eax, ecx
shl eax, 4
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x88]
add eax, 1
mov dword [esp + 0x28], eax
jmp 0x418d3f
fstp st(0)
fstp st(0)
fstp st(0)
mov esi, edi
mov edi, dword [esp + 0x34]
jmp 0x418a26
mov eax, dword [esp + 0x60]
mov esi, dword [esp + 0x68]
mov dword [esp + 0x50], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x5c], eax
jmp 0x418bc2
mov eax, dword [esp + 0x48]
mov dword [esp + 8], 0
mov dword [esp + 4], 0xa
mov dword [esp], eax
call fcn.0041ae10
mov dword [esp + 0x48], eax
mov eax, esi
test al, al
jne 0x4199a7
mov eax, dword [esp + 0x64]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x40], eax
jmp 0x418e8f
mov ecx, dword [esp + 0x60]
mov eax, edx
add dword [esp + 0x58], edx
mov dword [esp + 0x9c], edx
add eax, ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], eax
jmp 0x418bb2
fldz
xor eax, eax
mov edx, 1
mov esi, edi
fucompi st(1)
fstp st(0)
mov edi, dword [esp + 0x34]
setp al
cmovne eax, edx
shl eax, 4
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x88]
add eax, 1
mov dword [esp + 0x28], eax
jmp 0x418d3f
mov ecx, dword [esp + 0x40]
mov esi, dword [esp + 0x68]
lea eax, [ecx - 1]
cmp esi, eax
jl 0x419454
add dword [esp + 0x58], ecx
sub esi, eax
mov eax, ecx
mov dword [esp + 0x9c], ecx
mov ecx, dword [esp + 0x60]
add eax, ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], eax
jmp 0x418bb2
mov ecx, dword [ebp + 0x14]
test ecx, ecx
jne 0x4196e4
test eax, eax
jg 0x4198f8
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x20]
lea ebx, [eax + 1]
jmp 0x4197a8
mov eax, dword [esp + 0x20]
lea ebx, [eax + 1]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x20]
mov esi, ebx
mov byte [eax], 0x39
jmp 0x4191f0
mov ebx, dword [ebp + 0x14]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x48]
test ebx, ebx
mov dword [esp + 0x48], eax
je 0x419b88
mov eax, dword [esp + 0x20]
mov dword [esp + 0x30], 0x10
lea ebx, [eax + 1]
jmp 0x4197a8
jne 0x419b66
test dl, 1
jne 0x41992a
mov dword [esp + 0x50], 0x20
jmp 0x41993e
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x20]
lea ebx, [eax + 1]
jmp 0x419b26
mov eax, dword [esp + 0x50]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x20]
lea ebx, [eax + 1]
jmp 0x4197a8
cmp dword [ebp + 0x10], 1
mov dword [esp + 0x30], 0x10
jg 0x419063
xor eax, eax
cmp dword [ebp + 0x14], 0
setne al
shl eax, 4
mov dword [esp + 0x30], eax
jmp 0x419063