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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x3b4
mov eax, dword [ebp + 8]
fldz
mov ecx, dword [eax + 0x20]
fld st(0)
mov edx, dword [eax + 0x28]
fst qword [esp + 0x7c]
fld qword [0x4de2b0]
push ebx
mov dword [esp + 0x2c], ecx
fst qword [esp + 0x40]
mov ecx, dword [eax + 0x24]
fxch st(2)
xor eax, eax
fst qword [esp + 0x70]
push esi
push edi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x20], edx
mov dword [ecx + 0x18], eax
mov dword [esp + 0x60], eax
cmp dword [ecx + 0x10], eax
jle 0x46d5d8
fld1
mov dword [esp + 0x38], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x14]
add eax, dword [esp + 0x24]
mov dword [eax + 0x1c], 0
cmp dword [eax + 0x10], 0
lea ecx, [eax + 0x1c]
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x78], 0
jle 0x46d50b
mov dword [esp + 0x6c], 0
mov ecx, dword [esp + 0x48]
mov eax, dword [ecx + 0x14]
add eax, dword [esp + 0x6c]
mov dword [esp + 0x88], 0
cmp dword [eax + 0x18], 0
mov dword [esp + 0x1c], eax
jle 0x46d4f0
mov edx, eax
add edx, 0x30
mov dword [esp + 0x44], edx
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x14]
imul ecx, dword [eax + 0x10]
mov dword [esp + 0x98], 0
test ecx, ecx
jle 0x46d4cf
mov dword [esp + 0x68], 0
mov edx, dword [esp + 0x44]
mov eax, dword [edx]
add eax, dword [esp + 0x68]
mov dword [esp + 0x84], 0
mov ecx, dword [eax + 0x14]
imul ecx, dword [eax + 0x10]
mov dword [esp + 0x94], eax
test ecx, ecx
jle 0x46d4a8
mov dword [esp + 0x5c], 0
mov edx, dword [esp + 0x94]
mov edx, dword [edx + 0x18]
add edx, dword [esp + 0x5c]
xor ebx, ebx
mov eax, dword [edx + 0x2c]
mov dword [esp + 0x40], ebx
cmp eax, 4
jl 0x46d3fc
mov esi, dword [edx + 8]
add eax, 0xfffffffd
mov dword [esp + 0x28], eax
lea ecx, [ebx + ebx*2]
add ecx, ecx
add ecx, ecx
add ecx, ecx
mov eax, dword [ecx + esi]
fld qword [ecx + esi + 8]
test ebx, ebx
je 0x46d2d1
sub eax, dword [ecx + esi - 0x18]
fsub qword [ecx + esi - 0x10]
lea edi, [ecx + esi]
mov dword [esp + 0x18], eax
test eax, eax
je 0x46d2f9
fidiv dword [esp + 0x18]
fcom st(4)
fnstsw ax
test ah, 5
jp 0x46d2ec
fstp st(4)
fld st(3)
fxch st(4)
fcom st(2)
fnstsw ax
test ah, 0x41
jne 0x46d2f9
fstp st(2)
jmp 0x46d2fb
fstp st(0)
fld qword [ecx + esi + 0x20]
lea eax, [ebx + 1]
test eax, eax
mov eax, dword [ecx + esi + 0x18]
je 0x46d314
sub eax, dword [ecx + esi]
fsub qword [ecx + esi + 8]
lea edi, [ecx + esi]
mov dword [esp + 0x18], eax
test eax, eax
je 0x46d33c
fidiv dword [esp + 0x18]
fcom st(4)
fnstsw ax
test ah, 5
jp 0x46d32f
fstp st(4)
fld st(3)
fxch st(4)
fcom st(2)
fnstsw ax
test ah, 0x41
jne 0x46d33c
fstp st(2)
jmp 0x46d33e
fstp st(0)
lea eax, [ebx + 2]
lea edi, [eax + eax*2]
add edi, edi
add edi, edi
add edi, edi
fld qword [edi + esi + 8]
test eax, eax
mov eax, dword [edi + esi]
je 0x46d364
sub eax, dword [ecx + esi + 0x18]
fsub qword [ecx + esi + 0x20]
lea ebx, [ecx + esi]
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x18], eax
test eax, eax
je 0x46d38c
fidiv dword [esp + 0x18]
fcom st(4)
fnstsw ax
test ah, 5
jp 0x46d37f
fstp st(4)
fld st(3)
fxch st(4)
fcom st(2)
fnstsw ax
test ah, 0x41
jne 0x46d38c
fstp st(2)
jmp 0x46d38e
fstp st(0)
add ebx, 3
lea eax, [ebx + ebx*2]
lea eax, [esi + eax*8]
mov dword [esp + 0x70], eax
jne 0x46d3a8
mov ecx, dword [eax]
fld qword [eax + 8]
mov dword [esp + 0x18], ecx
jmp 0x46d3be
mov eax, dword [eax]
mov ebx, esi
sub eax, dword [edi + ebx]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x70]
fld qword [eax + 8]
fsub qword [ebx + ecx + 0x38]
cmp dword [esp + 0x18], 0
mov ebx, dword [esp + 0x40]
je 0x46d3e9
fidiv dword [esp + 0x18]
fcom st(4)
fnstsw ax
test ah, 5
jp 0x46d3dc
fstp st(4)
fld st(3)
fxch st(4)
fcom st(2)
fnstsw ax
test ah, 0x41
jne 0x46d3e9
fstp st(2)
jmp 0x46d3eb
fstp st(0)
add ebx, 4
mov dword [esp + 0x40], ebx
cmp ebx, dword [esp + 0x28]
jl 0x46d2b2
cmp ebx, dword [edx + 0x2c]
jge 0x46d453
mov edi, dword [edx + 8]
lea eax, [ebx + ebx*2]
add eax, eax
add eax, eax
add eax, eax
mov ecx, dword [eax + edi]
fld qword [eax + edi + 8]
test ebx, ebx
je 0x46d423
sub ecx, dword [eax + edi - 0x18]
fsub qword [eax + edi - 0x10]
lea esi, [eax + edi]
mov dword [esp + 0x18], ecx
test ecx, ecx
je 0x46d44b
fidiv dword [esp + 0x18]
fcom st(4)
fnstsw ax
test ah, 5
jp 0x46d43e
fstp st(4)
fld st(3)
fxch st(4)
fcom st(2)
fnstsw ax
test ah, 0x41
jne 0x46d44b
fstp st(2)
jmp 0x46d44d
fstp st(0)
inc ebx
cmp ebx, dword [edx + 0x2c]
jl 0x46d404
mov ecx, dword [edx + 0x14]
sub ecx, dword [edx + 0xc]
mov eax, dword [edx + 0x18]
sub eax, dword [edx + 0x10]
add dword [esp + 0x5c], 0x30
imul ecx, eax
mov eax, dword [esp + 0x3c]
add dword [eax + 0x18], ecx
mov ecx, dword [edx + 0x14]
sub ecx, dword [edx + 0xc]
mov eax, dword [edx + 0x18]
sub eax, dword [edx + 0x10]
imul ecx, eax
mov eax, dword [esp + 0x50]
add dword [eax], ecx
mov ecx, dword [esp + 0x94]
mov edx, dword [ecx + 0x14]
imul edx, dword [ecx + 0x10]
mov eax, dword [esp + 0x84]
inc eax
mov dword [esp + 0x84], eax
cmp eax, edx
jl 0x46d288
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 0x14]
imul edx, dword [ecx + 0x10]
mov eax, dword [esp + 0x98]
add dword [esp + 0x68], 0x24
inc eax
mov dword [esp + 0x98], eax
cmp eax, edx
jl 0x46d255
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x1c]
add dword [esp + 0x44], 0x20
inc eax
mov dword [esp + 0x88], eax
cmp eax, dword [ecx + 0x18]
jl 0x46d22f
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x48]
add dword [esp + 0x6c], 0x7c
inc eax
mov dword [esp + 0x78], eax
cmp eax, dword [edx + 0x10]
jl 0x46d202
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
mov eax, dword [ecx + 0x18]
mov edx, dword [esp + 0x38]
mov ecx, dword [eax + edx + 0x18]
mov eax, dword [esp + 0x60]
add dword [esp + 0x24], 0x20
mov esi, 1
shl esi, cl
mov ecx, dword [esp + 0x50]
add edx, 0x30
inc eax
mov dword [esp + 0x28], esi
fild dword [esp + 0x28]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x60], eax
fsub st(1)
fmul st(0), st(0)
fimul dword [ecx]
faddp st(3)
cmp eax, dword [edx + 0x10]
jl 0x46d1cb
fstp st(0)
fxch st(1)
fstp qword [esp + 0x88]
fst qword [esp + 0x78]
fxch st(1)
fst qword [esp + 0x48]
fxch st(1)
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x46d5c0
mov eax, dword [ebp + 8]
fstp st(1)
mov eax, dword [eax + 0x2c]
fstp st(0)
mov edx, dword [esp + 0x20]
lea esi, [eax + eax*8]
mov eax, dword [esp + 0x3c]
shl esi, 6
add esi, dword [ecx + 0x58]
mov ecx, dword [eax + 0x18]
mov dword [esi + 0x228], ecx
fld qword [eax + 0x20]
fstp qword [esi + 0x230]
mov eax, dword [edx + 0xc]
add eax, eax
add eax, eax
add eax, eax
push eax
call sub.MSVCRT.dll_malloc
fld qword [esp + 0x4c]
fld qword [esp + 0x7c]
add esp, 4
mov dword [esi], eax
mov ecx, dword [esp + 0x20]
xor edi, edi
cmp dword [ecx + 0xc], edi
jle 0x46d861
mov esi, dword [ebp + 8]
mov ebx, dword [esp + 0x3c]
jmp 0x46d5e8
fstp st(1)
jmp 0x46d570
fld qword [esp + 0x48]
fld qword [esp + 0x78]
mov edx, dword [esp + 0x20]
fxch st(1)
fstp qword [esp + 0x70]
fstp qword [esp + 0x60]
fld dword [edx + edi*4 + 0x14]
fldz
fucompp
fnstsw ax
test ah, 0x44
jnp 0x46d632
mov eax, edx
fld dword [eax + edi*4 + 0x14]
sub esp, 8
fstp qword [esp]
call sub.MSVCRT.dll_ceil
add esp, 8
call fcn.0049d940
cmp eax, dword [ebp + 0x10]
jge 0x46d629
mov dword [esp + 0x1c], eax
jmp 0x46d639
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x1c], ecx
jmp 0x46d639
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x1c], edx
fldz
mov eax, dword [esp + 0x20]
fstp qword [esp + 0x50]
fld dword [eax + edi*4 + 0x1440]
fld qword [0x4de280]
fdiv st(1), st(0)
fxch st(1)
call sub.MSVCRT.dll__CIpow
fdivr qword [esp + 0x88]
mov ecx, dword [esp + 0x34]
cmp dword [ecx + 0x18], 1
fsubr qword [ebx + 0x20]
fstp qword [esp + 0x98]
jne 0x46d685
fldz
mov edx, dword [esp + 0x20]
fcomp dword [edx + edi*4 + 0x14]
fnstsw ax
test ah, 5
jnp 0x46d6a9
mov eax, ecx
cmp dword [eax + 0x20], 1
jne 0x46d7fd
fldz
mov ecx, dword [esp + 0x20]
fcomp dword [ecx + edi*4 + 0x1440]
fnstsw ax
test ah, 5
jp 0x46d7fd
mov edx, dword [esp + 0x34]
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x14]
push edx
push eax
push ecx
call fcn.004720b0
add esp, 0xc
mov dword [esp + 0x24], eax
mov dword [esp + 0x38], 0x20
jmp 0x46d6d2
fstp st(0)
fld qword [esp + 0x60]
push 0
fadd qword [esp + 0x74]
sub esp, 8
fmul qword [0x4bf500]
fst qword [esp + 0x34]
fstp qword [esp]
push edi
push esi
call fcn.0046cef0
mov edx, dword [esp + 0x48]
add esp, 0x14
cmp dword [edx + 0x20], 0
je 0x46d778
mov eax, edx
cmp dword [eax], 0
je 0x46d74c
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0x10]
mov eax, dword [esi]
push ecx
mov ecx, dword [esi + 8]
push 0
push edx
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push eax
mov eax, dword [esi + 0x2c]
push ecx
mov ecx, dword [esp + 0x44]
lea edx, [edi + 1]
push edx
push ebx
push eax
push ecx
call fcn.00471af0
add esp, 0x30
cmp eax, 0xfffffc19
jne 0x46d74c
fld qword [esp + 0x28]
fst qword [esp + 0x70]
jmp 0x46d7c5
test edi, edi
jne 0x46d755
fld qword [ebx + 0x28]
jmp 0x46d760
fld qword [esp + edi*8 + 0x98]
fadd qword [ebx + edi*8 + 0x28]
fcomp qword [esp + 0x98]
fnstsw ax
fld qword [esp + 0x28]
test ah, 5
jnp 0x46d7bd
fst qword [esp + 0x70]
jmp 0x46d7c5
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
mov ecx, dword [esi]
push edx
mov edx, dword [esi + 8]
push 0
push eax
mov eax, dword [ebp + 0x14]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [ebp + 0xc]
push eax
push ecx
mov ecx, dword [esi + 0x2c]
push edx
mov edx, dword [esp + 0x44]
lea eax, [edi + 1]
push eax
push ebx
push ecx
push edx
call fcn.00471af0
fld qword [esp + 0x58]
add esp, 0x30
cmp eax, 0xfffffc19
jne 0x46d7bd
fst qword [esp + 0x70]
jmp 0x46d7c5
fst qword [esp + 0x60]
fst qword [esp + 0x50]
dec dword [esp + 0x38]
jne 0x46d6d0
fld qword [esp + 0x50]
fld st(0)
fldz
fucompp
fnstsw ax
test ah, 0x44
jp 0x46d7e4
fstp st(0)
jmp 0x46d7e6
fstp st(1)
mov eax, dword [esp + 0x24]
fstp qword [esp + 0x28]
push eax
call fcn.004720e0
fld qword [esp + 0x2c]
add esp, 4
jmp 0x46d801
fld qword [esp + 0x48]
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x46d81a
mov eax, dword [esi + 0x2c]
lea edx, [eax + eax*8]
mov eax, dword [ecx + 0x58]
shl edx, 6
mov ecx, dword [edx + eax]
fst qword [ecx + edi*8]
push 1
sub esp, 8
fstp qword [esp]
push edi
push esi
call fcn.0046cef0
add esp, 0x14
test edi, edi
jne 0x46d835
fld qword [ebx + 0x28]
jmp 0x46d840
fld qword [esp + edi*8 + 0x98]
fadd qword [ebx + edi*8 + 0x28]
mov edx, dword [esp + 0x20]
fstp qword [esp + edi*8 + 0xa0]
inc edi
cmp edi, dword [edx + 0xc]
jl 0x46d5e0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
fstp st(1)
pop esi
fstp st(0)
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret