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

Disassembly:
push 0xffffffffffffffff
push 0x728ef6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe4
push ebx
push ebp
mov ebp, dword [esp + 0xfc]
push esi
push edi
xor ebx, ebx
push ebx
mov dword [esp + 0x78], ecx
push ebx
mov ecx, ebp
call fcn.004e3210
test al, al
je 0x41f6c0
xor eax, eax
jmp 0x41fe80
push 0x18
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, ebx
je 0x41f6d9
mov esi, eax
mov dword [eax + 0x14], ebx
mov dword [esp + 0x54], esi
jmp 0x41f6df
mov dword [esp + 0x54], ebx
mov esi, ebx
xor eax, eax
mov ecx, 6
mov edi, esi
push 0x14
rep stosd dword es:[edi], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x98], eax
cmp eax, ebx
mov dword [esp + 0xfc], ebx
je 0x41f70f
mov ecx, eax
call fcn.0047e1e0
jmp 0x41f711
xor eax, eax
lea ecx, [esp + 0x38]
mov dword [esp + 0xfc], 0xffffffff
mov dword [esi + 0x10], eax
mov dword [esp + 0x18], 0x7f7fffff
mov dword [esp + 0x1c], 0x7f7fffff
mov dword [esp + 0x20], 0x7f7fffff
mov dword [esp + 0x28], 0xff7fffff
mov dword [esp + 0x2c], 0xff7fffff
mov dword [esp + 0x30], 0xff7fffff
call fcn.006f25e0
mov dword [esp + 0xfc], 1
mov eax, ebx
sub eax, 0
je 0x41f77c
dec eax
jne 0x41f8a9
mov ecx, ebp
call fcn.004de060
mov edi, eax
jmp 0x41f77f
lea edi, [ebp + 0x40]
test edi, edi
je 0x41f8a9
mov ecx, edi
call fcn.004f1ab0
mov esi, eax
test esi, esi
je 0x41f8a9
mov eax, dword [esi + 8]
shr eax, 5
test al, 1
jne 0x41f897
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x2c]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x34]
push eax
lea ecx, [esp + 0x3c]
call fcn.006ed100
fld dword [esp + 0x38]
fcomp dword [0x7de6cc]
fnstsw ax
test ah, 0x40
je 0x41f7f5
fld dword [esp + 0x3c]
fcomp dword [0x7de6d0]
fnstsw ax
test ah, 0x40
je 0x41f7f5
fld dword [esp + 0x40]
fcomp dword [0x7de6d4]
fnstsw ax
test ah, 0x40
jne 0x41f897
fld dword [esp + 0x44]
fadd dword [esp + 0x38]
fcom dword [esp + 0x28]
fnstsw ax
test ah, 0x41
jne 0x41f80e
fstp dword [esp + 0x28]
jmp 0x41f810
fstp st(0)
fld dword [esp + 0x3c]
fadd dword [esp + 0x44]
fcom dword [esp + 0x2c]
fnstsw ax
test ah, 0x41
jne 0x41f829
fstp dword [esp + 0x2c]
jmp 0x41f82b
fstp st(0)
fld dword [esp + 0x40]
fadd dword [esp + 0x44]
fcom dword [esp + 0x30]
fnstsw ax
test ah, 0x41
jne 0x41f844
fstp dword [esp + 0x30]
jmp 0x41f846
fstp st(0)
fld dword [esp + 0x38]
fsub dword [esp + 0x44]
fcom dword [esp + 0x18]
fnstsw ax
test ah, 1
je 0x41f85f
fstp dword [esp + 0x18]
jmp 0x41f861
fstp st(0)
fld dword [esp + 0x3c]
fsub dword [esp + 0x44]
fcom dword [esp + 0x1c]
fnstsw ax
test ah, 1
je 0x41f87a
fstp dword [esp + 0x1c]
jmp 0x41f87c
fstp st(0)
fld dword [esp + 0x40]
fsub dword [esp + 0x44]
fcom dword [esp + 0x20]
fnstsw ax
test ah, 1
je 0x41f895
fstp dword [esp + 0x20]
jmp 0x41f897
fstp st(0)
push esi
mov ecx, edi
call fcn.004f1aa0
mov esi, eax
test esi, esi
jne 0x41f798
inc ebx
cmp ebx, 2
jl 0x41f763
mov ecx, ebp
mov dword [esp + 0x10], 0
call fcn.004e2ba0
test eax, eax
je 0x41f8d7
mov ecx, ebp
call fcn.004e2ba0
add eax, 0x28
mov eax, dword [eax + 0xc]
mov dword [esp + 0x10], eax
fld dword [esp + 0x28]
mov eax, dword [0x7de698]
fsub dword [esp + 0x18]
mov ecx, dword [0x7de690]
mov edx, dword [0x7de694]
mov dword [esp + 0x90], eax
fmul dword [0x746498]
mov eax, dword [0x7de6ac]
mov dword [esp + 0x84], eax
fadd dword [esp + 0x18]
mov dword [esp + 0x88], ecx
mov ecx, dword [0x7de6a4]
mov dword [esp + 0x8c], edx
fstp dword [esp + 0x48]
mov edx, dword [0x7de6a8]
fld dword [esp + 0x2c]
mov dword [esp + 0x7c], ecx
fsub dword [esp + 0x1c]
mov dword [esp + 0x80], edx
fmul dword [0x746498]
fadd dword [esp + 0x1c]
fstp dword [esp + 0x4c]
fld dword [esp + 0x30]
fsub dword [esp + 0x20]
fmul dword [0x746498]
fst dword [esp + 0x34]
fadd dword [esp + 0x20]
fstp dword [esp + 0x50]
fld dword [esp + 0x10]
fcomp dword [0x746468]
fnstsw ax
test ah, 0x40
jne 0x41fb4d
mov dword [esp + 0x18], 0x7f7fffff
mov dword [esp + 0x1c], 0x7f7fffff
mov dword [esp + 0x28], 0xff7fffff
mov dword [esp + 0x2c], 0xff7fffff
xor ebx, ebx
mov eax, ebx
sub eax, 0
je 0x41f9b6
dec eax
jne 0x41fb0e
mov ecx, ebp
call fcn.004de060
mov edi, eax
jmp 0x41f9b9
lea edi, [ebp + 0x40]
test edi, edi
je 0x41fb0e
mov ecx, edi
call fcn.004f1ab0
fld dword [esp + 0x10]
push ecx
fchs
fstp dword [esp]
push 0
push 0
lea ecx, [esp + 0xdc]
mov esi, eax
call fcn.006e8d60
test esi, esi
je 0x41fb0e
mov ecx, dword [esi + 8]
shr ecx, 5
test cl, 1
jne 0x41fafc
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x2c]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x34]
push eax
lea ecx, [esp + 0x3c]
call fcn.006ed100
fld dword [esp + 0x38]
fcomp dword [0x7de6cc]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x14], eax
fnstsw ax
test ah, 0x40
je 0x41fa52
fld dword [esp + 0x3c]
fcomp dword [0x7de6d0]
fnstsw ax
test ah, 0x40
je 0x41fa52
fld dword [esp + 0x40]
fcomp dword [0x7de6d4]
fnstsw ax
test ah, 0x40
jne 0x41fafc
fld dword [esp + 0x40]
lea ecx, [esp + 0x68]
fsub dword [esp + 0x50]
push ecx
fld dword [esp + 0x40]
lea edx, [esp + 0xa4]
fsub dword [esp + 0x50]
push edx
fld dword [esp + 0x40]
lea ecx, [esp + 0xd8]
fsub dword [esp + 0x50]
fstp dword [esp + 0x70]
fstp dword [esp + 0x74]
fstp dword [esp + 0x78]
call fcn.006e8230
fld dword [esp + 0x4c]
fadd dword [eax + 4]
fld dword [esp + 0x48]
fadd dword [eax]
fld st(0)
fadd dword [esp + 0x14]
fcom dword [esp + 0x28]
fnstsw ax
test ah, 0x41
jne 0x41fab3
fstp dword [esp + 0x28]
jmp 0x41fab5
fstp st(0)
fld st(1)
fadd dword [esp + 0x14]
fcom dword [esp + 0x2c]
fnstsw ax
test ah, 0x41
jne 0x41facc
fstp dword [esp + 0x2c]
jmp 0x41face
fstp st(0)
fsub dword [esp + 0x14]
fcom dword [esp + 0x18]
fnstsw ax
test ah, 1
je 0x41fae3
fstp dword [esp + 0x18]
jmp 0x41fae5
fstp st(0)
fsub dword [esp + 0x14]
fcom dword [esp + 0x1c]
fnstsw ax
test ah, 1
je 0x41fafa
fstp dword [esp + 0x1c]
jmp 0x41fafc
fstp st(0)
push esi
mov ecx, edi
call fcn.004f1aa0
mov esi, eax
test esi, esi
jne 0x41f9ec
inc ebx
cmp ebx, 2
jl 0x41f99d
fld dword [esp + 0x10]
fadd qword [0x746760]
fld st(0)
fsin
fstp dword [esp + 0x88]
fcos
fstp dword [esp + 0x8c]
fld dword [esp + 0x10]
fsin
fstp dword [esp + 0x7c]
fld dword [esp + 0x10]
fcos
fstp dword [esp + 0x80]
fld dword [esp + 0x28]
fsub dword [esp + 0x18]
fmul dword [0x746758]
call sub.MSVCRT.dll__ftol
fld dword [esp + 0x2c]
fsub dword [esp + 0x1c]
mov esi, 1
fmul dword [0x746758]
sub esi, eax
call sub.MSVCRT.dll__ftol
mov ebx, 1
sub ebx, eax
cmp si, 3
mov eax, dword [esp + 0x34]
mov dword [esp + 0x94], eax
jg 0x41fb9e
cmp bx, 3
jg 0x41fb9e
push 3
push 3
jmp 0x41fba0
push esi
push ebx
mov ecx, dword [esp + 0x7c]
call fcn.0041eea0
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x54]
push ecx
push 0
push 0
lea ecx, [esp + 0xb8]
mov word [eax + 0xc], bx
mov word [eax + 0xe], si
call fcn.006e8d60
fld dword [esp + 0x30]
fsub dword [esp + 0x50]
lea edx, [esp + 0x68]
fld dword [esp + 0x2c]
push edx
fsub dword [esp + 0x50]
lea eax, [esp + 0xa4]
fld dword [esp + 0x2c]
push eax
fsub dword [esp + 0x50]
lea ecx, [esp + 0xb4]
fstp dword [esp + 0x70]
fstp dword [esp + 0x74]
fstp dword [esp + 0x78]
call fcn.006e8230
fld dword [esp + 0x20]
lea ecx, [esp + 0x68]
fsub dword [esp + 0x50]
push ecx
fld dword [esp + 0x20]
lea edx, [esp + 0xa4]
fsub dword [esp + 0x50]
push edx
fld dword [esp + 0x20]
lea ecx, [esp + 0xb4]
fsub dword [esp + 0x50]
fstp dword [esp + 0x70]
fstp dword [esp + 0x74]
fstp dword [esp + 0x78]
call fcn.006e8230
fld dword [esp + 0x4c]
fadd dword [eax + 4]
fld dword [esp + 0x48]
fadd dword [eax]
fld st(0)
fadd dword [0x746754]
fstp dword [esp + 0x34]
fld st(1)
fadd dword [0x746754]
fstp dword [esp + 0x14]
fld dword [esp + 0x10]
fcomp dword [0x746468]
fnstsw ax
test ah, 0x40
jne 0x41fcaf
fld dword [esp + 0x7c]
fadd dword [esp + 0x88]
fmul dword [0x746754]
fadd st(1)
fstp dword [esp + 0x34]
fstp st(0)
fld dword [esp + 0x80]
fadd dword [esp + 0x8c]
fmul dword [0x746754]
fadd st(1)
fstp dword [esp + 0x14]
jmp 0x41fcb1
fstp st(0)
cmp si, 1
fstp st(0)
jne 0x41fce5
cmp bx, si
jne 0x41fce5
fld dword [esp + 0x10]
fcomp dword [0x746468]
fnstsw ax
test ah, 0x40
je 0x41fce5
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ecx
jmp 0x41fcfc
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x94]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ecx
movsx eax, si
xor edi, edi
test eax, eax
mov dword [esp + 0x64], edx
mov dword [esp + 0x98], eax
jle 0x41fe42
movsx ebp, bx
xor esi, esi
test ebp, ebp
jle 0x41fdbc
fld dword [esp + 0x84]
fmul dword [0x746750]
fstp dword [esp + 0x24]
fld dword [esp + 0x80]
fmul dword [0x746750]
fstp dword [esp + 0x58]
fld dword [esp + 0x7c]
fmul dword [0x746750]
fstp dword [esp + 0x78]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x10]
push eax
push ecx
sub esp, 0xc
lea edx, [esp + 0x70]
mov ecx, esp
mov dword [esp + 0xb0], esp
push edx
call fcn.0040a7e0
mov eax, dword [esp + 0x118]
push eax
mov ecx, ebx
sub ecx, esi
dec ecx
push edi
push ecx
mov ecx, dword [esp + 0x94]
call fcn.0041fea0
fld dword [esp + 0x78]
fadd dword [esp + 0x5c]
inc esi
cmp esi, ebp
fstp dword [esp + 0x5c]
fld dword [esp + 0x60]
fadd dword [esp + 0x58]
fstp dword [esp + 0x60]
fld dword [esp + 0x64]
fadd dword [esp + 0x24]
fstp dword [esp + 0x64]
jl 0x41fd51
mov eax, dword [esp + 0x98]
inc edi
cmp edi, eax
mov dword [esp + 0x24], edi
fild dword [esp + 0x24]
fld dword [esp + 0x90]
fmul st(1)
fstp dword [esp + 0x24]
fld st(0)
fmul dword [esp + 0x8c]
fstp dword [esp + 0x58]
fmul dword [esp + 0x88]
fld dword [esp + 0x24]
fmul dword [0x746750]
fstp dword [esp + 0x24]
fld dword [esp + 0x58]
fmul dword [0x746750]
fstp dword [esp + 0x58]
fmul dword [0x746750]
fstp dword [esp + 0x78]
fld dword [esp + 0x24]
fadd dword [esp + 0x94]
fld dword [esp + 0x58]
fadd dword [esp + 0x14]
fld dword [esp + 0x78]
fadd dword [esp + 0x34]
fstp dword [esp + 0x5c]
fstp dword [esp + 0x60]
fstp dword [esp + 0x64]
jl 0x41fd17
mov ebp, dword [esp + 0x104]
mov eax, dword [ebp + 0x84]
test eax, eax
je 0x41fe55
push 0
mov ecx, ebp
call fcn.004e3550
mov esi, dword [esp + 0x54]
push 0
push 0
mov ecx, ebp
mov dword [ebp + 0x84], esi
call fcn.004e3210
lea ecx, [esp + 0x38]
mov dword [esp + 0xfc], 0xffffffff
call fcn.006e9a00
mov eax, esi
mov ecx, dword [esp + 0xf4]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xf0
ret 4