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

Disassembly:
sub esp, 0xa4
mov eax, dword [0x100a9570]
xor eax, esp
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0xac]
mov ecx, dword [0x100ac57c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xbc]
push ebx
mov dword [esp + 0xc], eax
mov eax, dword [ecx + 0x3e60]
push ebp
mov ebp, dword [esp + 0xb0]
push esi
mov byte [eax + 0xac], 1
mov esi, dword [ecx + 0x3e60]
push edi
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x34], esi
cmp byte [esi + 0xaf], 0
jne 0x100464fc
mov edi, dword [0x100ac57c]
mov ecx, esi
push 0
push ebp
call fcn.10015440
mov ebx, eax
call fcn.10011b40
push ecx
mov dword [esp], 0xbf800000
lea eax, [esp + 0x4c]
push 1
push 0
push ebp
push eax
fstp dword [esp + 0x28]
call fcn.10011cf0
movss xmm0, dword [edi + 0x37c8]
xorps xmm3, xmm3
movss xmm4, dword [esi + 0xf0]
addss xmm0, xmm0
movss xmm1, dword [esp + 0x5c]
movaps xmm2, xmm4
addss xmm2, dword [esp + 0x28]
add esp, 0x14
comiss xmm1, xmm3
addss xmm0, dword [esp + 0x4c]
addss xmm0, dword [esi + 0xf4]
movss dword [esp + 0x20], xmm4
movss xmm5, dword [esi + 0xf4]
movss dword [esp + 0x24], xmm5
movss dword [esp + 0x28], xmm2
movss dword [esp + 0x2c], xmm0
jbe 0x10046156
addss xmm1, dword [edi + 0x37dc]
jmp 0x10046159
xorps xmm1, xmm1
mov ebp, dword [esp + 0xd0]
addss xmm0, xmm3
addss xmm2, xmm1
movss dword [esp + 0x60], xmm4
mov eax, ebp
movss dword [esp + 0x64], xmm5
shr eax, 7
not al
movss dword [esp + 0x6c], xmm0
and eax, 0xffffff01
subss xmm0, xmm5
movss dword [esp + 0x68], xmm2
subss xmm2, xmm4
mov dword [esp + 0x14], eax
push ecx
lea eax, [esp + 0x44]
movss dword [esp + 0x48], xmm0
movss xmm0, dword [edi + 0x37c8]
movss dword [esp], xmm0
push eax
movss dword [esp + 0x48], xmm2
call fcn.10017c60
mov eax, dword [esp + 0x1c]
movzx eax, al
shl eax, 0xa
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x70]
push ebx
push eax
call fcn.10017810
add esp, 0x18
test al, al
je 0x100464fc
cmp dword [esp + 0x18], 0
jne 0x100461fa
mov eax, dword [esp + 0x1c]
shl eax, 4
mov eax, dword [eax + 0x10098480]
mov dword [esp + 0x18], eax
push dword [edi + 0x46dc]
lea eax, [esp + 0x24]
push ebx
push eax
call fcn.10017a60
add esp, 0xc
mov byte [esp + 0x12], al
cmp byte [esp + 0x14], 0
je 0x10046244
mov ecx, dword [0x100ac57c]
cmp dword [ecx + 0x3eac], ebx
jne 0x10046233
cmp dword [ecx + 0x59c0], ebx
je 0x100462c5
test dword [edi + 0x46e0], 0x100
mov byte [esp + 0x11], 1
jne 0x10046249
mov byte [esp + 0x11], 0
test al, al
je 0x10046262
push 0
push ebx
push 0
call fcn.10017410
add esp, 0xc
test al, al
je 0x10046262
mov al, 1
jmp 0x10046264
xor al, al
mov cl, byte [esp + 0x11]
mov byte [esp + 0x13], al
test cl, cl
jne 0x10046281
test al, al
jne 0x10046285
cmp dword [edi + 0x47fc], ebx
je 0x1004629d
jmp 0x1004632c
test al, al
je 0x1004629d
push 0
push ebx
push 0x281
call fcn.10020cc0
mov al, byte [esp + 0x1f]
add esp, 0xc
mov cl, byte [esp + 0x11]
cmp byte [esp + 0x14], 0
je 0x1004630c
test cl, cl
jne 0x100462c5
test al, al
je 0x100462b4
cmp byte [edi + 0xdd8], cl
jne 0x100462c5
cmp dword [edi + 0x47fc], ebx
jne 0x1004630c
test byte [edi + 0x4808], 1
je 0x1004630c
mov ecx, ebp
mov eax, 0
shr ecx, 4
test cl, 1
cmovne eax, dword [esp + 0xc8]
push eax
xor eax, eax
test cl, 1
cmovne eax, dword [esp + 0xc8]
push eax
push dword [esp + 0x20]
lea eax, [esp + 0x2c]
push dword [esp + 0x3c]
push dword [esp + 0x2c]
push dword [esp + 0x50]
push ebx
push eax
call fcn.10046520
add esp, 0x20
jmp 0x100464fe
push esi
push ebx
call fcn.10020700
push esi
push ebx
call fcn.100209e0
push 0
push esi
call fcn.10014ea0
add esp, 0x18
or dword [edi + 0x46a8], 3
cmp dword [edi + 0x3eac], ebx
jne 0x1004633b
mov eax, 9
jmp 0x10046347
xor eax, eax
cmp byte [esp + 0x12], al
setne al
add eax, 7
push ecx
mov dword [esp], 0x3f800000
push eax
call fcn.100152f0
push 1
mov esi, eax
lea eax, [esp + 0x2c]
push ebx
push eax
call fcn.1001ea60
movss xmm0, dword [edi + 0x37cc]
add esp, 0x10
movss dword [esp], xmm0
push 1
push esi
push dword [esp + 0x38]
push dword [esp + 0x38]
push dword [esp + 0x38]
push dword [esp + 0x38]
call fcn.1001e480
lea eax, [esp + 0x6c]
xorps xmm0, xmm0
push eax
push ebp
mov ebp, dword [esp + 0x3c]
lea eax, [esp + 0x44]
push ebp
push dword [esp + 0xf0]
movups xmmword [esp + 0x7c], xmm0
push dword [esp + 0xf0]
push dword [esp + 0x60]
push dword [esp + 0x50]
push ebx
push eax
call fcn.10045d40
add esp, 0x40
mov byte [esp + 0x12], al
test al, al
je 0x100463d4
push ebx
call fcn.10018430
add esp, 4
movss xmm0, dword [esp + 0x58]
comiss xmm0, dword [esp + 0x50]
jbe 0x10046438
mov esi, dword [esp + 0x34]
xor eax, eax
cmp dword [edi + 0x3eac], ebx
movss xmm0, dword [edi + 0x3808]
push ecx
mov esi, dword [esi + 0x264]
sete al
add eax, 0x13
mov dword [esp], 0x3f800000
push eax
movss dword [esp + 0x3c], xmm0
call fcn.100152f0
movss xmm0, dword [esp + 0x3c]
add esp, 8
push 0
push ecx
movss dword [esp], xmm0
mov ecx, esi
push eax
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x60]
push eax
call fcn.1002a660
push ebp
push dword [esp + 0x34]
lea eax, [esp + 0x78]
push dword [esp + 0x24]
push 0x40
push eax
call fcn.10041070
lea esi, [esp + 0x84]
add esp, 0x14
add esi, eax
cmp byte [edi + 0x5ae0], 0
je 0x10046474
push 0x100985a8
push 0x100985ac
call fcn.100182e0
add esp, 8
push 0
lea eax, [esp + 0x44]
mov dword [esp + 0x44], 0x3f000000
push eax
push 0
push esi
lea eax, [esp + 0x80]
mov dword [esp + 0x54], 0x3f000000
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.1001edb0
movss xmm0, dword [esp + 0x64]
xorps xmm1, xmm1
add esp, 0x1c
comiss xmm0, xmm1
jbe 0x100464f6
movss xmm0, dword [esp + 0x28]
addss xmm0, dword [edi + 0x37dc]
push 1
push 0
push dword [esp + 0x44]
movss dword [esp + 0x40], xmm0
movss xmm0, dword [esp + 0x30]
addss xmm0, dword [edi + 0x37c8]
movss dword [esp + 0x44], xmm0
push dword [esp + 0x44]
push dword [esp + 0x44]
call fcn.1001ecc0
add esp, 0x14
mov al, byte [esp + 0x12]
jmp 0x100464fe
xor al, al
mov ecx, dword [esp + 0xb0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1004d4b3
add esp, 0xa4
ret