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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x88
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x10]
lea esi, [eax + ecx + 1]
cmp esi, 5
jae 0x468937
test esi, esi
je 0x4689a1
lea eax, [esi*8]
lea ecx, [esp + 8]
push eax
push 0
push ecx
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x2c]
jmp 0x4689a1
xor ebx, ebx
cmp esi, 0x10000000
setb al
jae 0x468b70
mov bl, al
lea ecx, [esi*8]
shl ebx, 3
test ecx, ecx
mov dword [esp + 4], ecx
js 0x468b77
je 0x468b57
mov eax, dword [0x6074a0]
mov eax, dword [eax]
test eax, eax
jne 0x468986
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x468b61
mov ecx, dword [0x6074a0]
mov dword [ecx], eax
push dword [esp + 4]
push 8
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x468b61
mov edx, 1
jmp 0x4689d2
mov edx, dword [esp + 0x24]
movsd xmm0, qword [esp + 0x1c]
movsd xmm2, qword [esp + 0xc]
movsd xmm1, qword [esp + 0x14]
mov dword [esp + 0x80], edx
xor edx, edx
movsd qword [esp + 0x78], xmm0
movsd qword [esp + 0x70], xmm1
movsd qword [esp + 0x68], xmm2
movsd xmm1, qword [esp + 0x70]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], eax
mov edx, dword [esp + 0x80]
movsd xmm0, qword [esp + 0x68]
cmp esi, 5
mov edi, dword [ebp + 0x14]
movsd qword [esp + 0x4c], xmm1
movsd xmm1, qword [esp + 0x78]
mov dword [esp + 0x5c], edx
movsd qword [esp + 0x44], xmm0
mov edx, dword [ebp + 0x10]
movsd qword [esp + 0x54], xmm1
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], ecx
lea ecx, [esp + 0x40]
cmovae ecx, eax
mov eax, dword [ebp + 0x18]
cmp edx, eax
mov ebx, eax
cmova ebx, edx
cmovb eax, edx
mov edx, esi
mov esi, dword [ebp + 0xc]
cmovb esi, edi
cmovb edi, dword [ebp + 0xc]
cmp eax, 0x21
jae 0x468a51
push ebx
push esi
push eax
push edi
call fcn.00463a30
add esp, 0x10
jmp 0x468a72
cmp eax, 0x101
jae 0x468a66
push ebx
push esi
push eax
push edi
call fcn.00463c40
add esp, 0x10
jmp 0x468a72
push ebx
push esi
push eax
push edi
call fcn.004648c0
add esp, 0x10
movsd xmm3, qword [esp + 0x60]
movsd xmm2, qword [esp + 0x58]
movsd xmm0, qword [esp + 0x38]
movsd xmm1, qword [esp + 0x40]
lea esi, [esp + 0x10]
movsd qword [esp + 0x30], xmm3
movsd qword [esp + 0x28], xmm2
movsd xmm3, qword [esp + 0x50]
movsd xmm2, qword [esp + 0x48]
movsd qword [esp + 0x10], xmm1
movsd qword [esp + 8], xmm0
movsd qword [esp + 0x20], xmm3
movsd qword [esp + 0x18], xmm2
mov edi, dword [esp + 0x10]
nop word cs:[eax + eax]
nop dword [eax]
mov eax, dword [esp + 0x30]
mov edx, esi
cmp eax, 5
mov ebx, eax
jb 0x468ae3
mov ebx, dword [esp + 0xc]
mov edx, edi
test ebx, ebx
je 0x468b0b
mov ecx, dword [edx + ebx*8 - 8]
or ecx, dword [edx + ebx*8 - 4]
jne 0x468b0b
cmp eax, 5
lea edx, [esp + 0x30]
jb 0x468b02
mov eax, dword [esp + 0xc]
lea edx, [esp + 0xc]
test eax, eax
je 0x468ad0
dec eax
mov dword [edx], eax
jmp 0x468ad0
mov eax, dword [ebp + 8]
movsd xmm1, qword [esp + 0x28]
movsd xmm2, qword [esp + 0x20]
movsd xmm0, qword [esp + 0x30]
movsd qword [eax + 0x20], xmm1
movsd xmm1, qword [esp + 0x18]
movsd qword [eax + 0x18], xmm2
movsd xmm2, qword [esp + 8]
movsd qword [eax + 0x28], xmm0
movsd qword [eax + 0x10], xmm1
movsd xmm1, qword [esp + 0x10]
movsd qword [eax], xmm2
movsd qword [eax + 8], xmm1
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, ebx
test eax, eax
jne 0x46899a
push dword [esp + 4]
push ebx
call fcn.0041a8c0
add esp, 8
ud2
call fcn.0041a880
ud2
call fcn.0041a880
ud2