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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1d4
mov eax, dword [0x10094610]
xor eax, esp
mov dword [esp + 0x1d0], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x20]
push edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0x18]
mov dword [esp + 0x4c], eax
push eax
mov eax, dword [esi + 4]
mov dword [esp + 0x40], edi
call fcn.100454f3
mov ebx, dword [esi + 0x14]
imul ebx, ebx, 0x28
mov dword [esp + 0x48], edx
mov edx, dword [esi + 0x1c]
add ebx, edx
cmp byte [edi + 0x16], 0
pop ecx
mov dword [esp + 0x40], eax
jne 0x1004686b
jmp 0x1004685f
mov eax, 0x100
cmp word [edx + 0x10], ax
jne 0x1004685c
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
not eax
and eax, dword [edx + 0x20]
not ecx
and ecx, dword [edx + 0x24]
and eax, dword [ebp + 0x14]
and ecx, dword [ebp + 0x18]
or eax, ecx
jne 0x1004685c
mov ecx, dword [edx + 0xc]
mov eax, dword [ecx + 0x160]
mov edi, dword [ecx + 0x164]
and eax, dword [esp + 0x40]
and edi, dword [esp + 0x44]
or eax, edi
je 0x1004685c
mov eax, dword [ecx + 0x14]
fldz
mov edi, dword [ecx + 0x1c]
imul eax, eax, 0x28
fst qword [esp + 0x20]
fstp qword [esp + 0x30]
and dword [esp + 0x18], 0
and dword [esp + 0x1c], 0
add eax, edi
mov dword [esp + 0x48], eax
mov dword [esp + 0x28], edi
cmp edi, eax
jae 0x10046802
mov ecx, 0x200
cmp word [edi + 0x10], cx
jne 0x10046744
lea eax, [esp + 0x50]
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [edi + 0xc]
jmp 0x1004678b
mov ecx, dword [edi + 8]
cmp ecx, dword [esp + 0x4c]
jne 0x100467ed
mov eax, dword [esi]
mov dword [esp + 0x78], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x50]
push eax
push dword [ebp + 0x18]
lea eax, [esp + 0x80]
push dword [ebp + 0x14]
mov byte [esp + 0x94], 0x45
mov dword [esp + 0xa0], edi
mov dword [esp + 0x98], 1
push eax
mov eax, dword [esp + 0x4c]
mov edi, dword [esp + 0x3c]
call fcn.100476a3
fld qword [esp + 0x70]
fadd qword [esp + 0x30]
mov eax, dword [esp + 0x80]
or dword [esp + 0x28], eax
mov eax, dword [esp + 0x84]
or dword [esp + 0x2c], eax
fstp qword [esp + 0x30]
fld qword [esp + 0x78]
mov eax, dword [esp + 0x20]
fadd qword [esp + 0x40]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
add esp, 0x10
fstp qword [esp + 0x30]
fld qword [eax + 0x10]
fcomp qword [esp + 0x20]
fnstsw ax
test ah, 0x41
jnp 0x10046806
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x48]
jmp 0x100467f1
mov ecx, dword [esp + 0x10]
add edi, 0x28
mov dword [esp + 0x28], edi
cmp edi, eax
jb 0x10046729
jmp 0x10046806
mov ecx, dword [esp + 0x10]
cmp dword [ebp + 0x1c], 0
je 0x10046829
fld qword [esp + 0x30]
push ecx
push ecx
fstp qword [esp]
call fcn.10046603
fmul qword [esp + 0x38]
add esp, 8
fadd qword [esp + 0x20]
fstp qword [esp + 0x20]
fld qword [ecx + 0x10]
fcomp qword [esp + 0x20]
fnstsw ax
test ah, 0x41
jne 0x1004685c
mov eax, dword [esp + 0x18]
fld qword [esp + 0x20]
fstp qword [ecx + 0x10]
mov dword [ecx + 0x20], eax
fld qword [esp + 0x30]
mov eax, dword [esp + 0x1c]
fstp qword [ecx + 0x18]
mov dword [ecx + 0x24], eax
mov dword [ecx], 0x10000000
mov dword [ecx + 8], edx
add edx, 0x28
mov dword [esp + 0x14], edx
cmp edx, ebx
jb 0x100466ac
mov ecx, dword [esp + 0x1dc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100660ff
mov esp, ebp
pop ebp
ret