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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xb8
mov ebx, edx
mov dword [esp + 0x10], ecx
lea eax, [esp + 0x78]
push dword [ebp + 8]
push edx
push 1
push eax
call fcn.00437140
add esp, 0x10
movzx eax, byte [esp + 0x78]
mov ecx, dword [esp + 0x8c]
movsd xmm0, qword [esp + 0x9c]
mov esi, dword [esp + 0x98]
mov edi, dword [esp + 0x94]
mov dword [esp + 4], 2
mov byte [esp + 3], al
mov eax, dword [esp + 0x84]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0xa4]
movsd qword [esp + 0x68], xmm0
mov dword [esp + 8], esi
lea edx, [eax - 2]
mov dword [esp + 0x70], ecx
mov ecx, 2
cmp edx, 2
cmovae edx, ecx
mov ecx, dword [esp + 0x88]
test edx, edx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x90]
je 0x46dce8
cmp edx, 1
jne 0x46dd03
mov dword [esp + 4], 3
mov eax, dword [esp + 0xa8]
test ecx, ecx
mov dword [esp + 0x14], eax
je 0x46dd2d
mov ecx, dword [ebp + 8]
mov esi, dword [esp + 8]
jmp 0x46dd95
mov edx, dword [esp + 0x80]
movsd xmm0, qword [esp + 0x79]
mov dword [esp + 4], eax
mov dword [esp + 0x27], edx
movsd qword [esp + 0x20], xmm0
mov eax, dword [esp + 0xa8]
test ecx, ecx
mov dword [esp + 0x14], eax
jne 0x46dcf7
mov ecx, dword [esp + 8]
mov dword [esp + 0xc], ebx
test ecx, ecx
je 0x46dd7a
js 0x46df34
mov ebx, dword [0x56bbf8]
mov eax, dword [ebx]
test eax, eax
jne 0x46dd5a
call sub.kernel32.dll_GetProcessHeap
mov ecx, dword [esp + 8]
test eax, eax
je 0x46dd6d
mov dword [ebx], eax
push ecx
push 0
push eax
call sub.kernel32.dll_HeapAlloc
mov ecx, dword [esp + 8]
mov ebx, eax
test eax, eax
jne 0x46dd7f
push 1
push ecx
call fcn.004085f0
add esp, 8
ud2
mov ebx, 1
push ecx
push edi
push ebx
mov esi, ecx
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov edi, ebx
mov ebx, dword [esp + 0xc]
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x78]
mov eax, dword [esp + 0x70]
movsd xmm0, qword [esp + 0x68]
mov dword [esp + 0x5c], eax
movsd qword [esp + 0x54], xmm0
movq xmm0, qword [esp + 0x20]
mov eax, dword [esp + 0x27]
movq qword [esp + 0x31], xmm0
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x48], 1
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], esi
mov esi, dword [esp + 4]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x60], eax
movzx eax, byte [esp + 3]
mov byte [esp + 0x30], al
mov dword [esp + 0x3c], esi
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], esi
push ecx
push ebx
push edx
call fcn.004091a0
add esp, 0xc
mov edi, dword [esp + 0x78]
mov eax, dword [esp + 0x7c]
test edi, edi
mov ecx, edi
mov dword [esp + 4], eax
cmove ecx, eax
mov eax, dword [esp + 0x80]
cmp eax, 0x10
jae 0x46deb3
xor ebx, ebx
test eax, eax
je 0x46debf
cmp eax, 8
mov edx, ecx
jb 0x46de97
movd xmm1, dword [ecx]
movdqa xmm2, xmmword [0x519fb0]
movd xmm0, dword [ecx + 4]
movdqa xmm3, xmmword [0x519fc0]
mov edx, eax
and edx, 0xfffffff8
cmp edx, eax
pcmpgtb xmm1, xmm2
punpcklbw xmm1, xmm1
punpcklwd xmm1, xmm1
pcmpgtb xmm0, xmm2
punpcklbw xmm0, xmm0
pand xmm1, xmm3
punpcklwd xmm0, xmm0
pand xmm0, xmm3
paddd xmm0, xmm1
pshufd xmm1, xmm0, 0xee
paddd xmm1, xmm0
pshufd xmm0, xmm1, 0x55
paddd xmm0, xmm1
movd ebx, xmm0
je 0x46debf
add edx, ecx
add ecx, eax
nop dword [eax]
xor eax, eax
cmp byte [edx], 0xc0
lea edx, [edx + 1]
setge al
add ebx, eax
cmp edx, ecx
jne 0x46dea0
jmp 0x46debf
push eax
push ecx
call fcn.004182d0
add esp, 8
mov ebx, eax
test edi, edi
je 0x46ded9
cmp dword [esp + 4], 0
je 0x46ded9
mov eax, dword [0x56bbf8]
push edi
push 0
push dword [eax]
call sub.kernel32.dll_HeapFree
mov eax, dword [esp + 0x10]
movsd xmm2, qword [esp + 0x58]
movsd xmm1, qword [esp + 0x50]
movsd xmm0, qword [esp + 0x60]
movsd qword [eax + 0x28], xmm2
movsd qword [eax + 0x20], xmm1
movsd xmm2, qword [esp + 0x48]
movsd xmm1, qword [esp + 0x40]
movsd qword [eax + 0x30], xmm0
movsd qword [eax + 0x18], xmm2
movsd qword [eax + 0x10], xmm1
movsd xmm2, qword [esp + 0x30]
movsd xmm1, qword [esp + 0x38]
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm2
mov dword [eax + 0x38], ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.004085b0
ud2