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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xa0
mov eax, dword [ebp + 8]
cmp byte [ebp + 0xc], 0
mov edi, ecx
mov esi, edx
mov dword [esp + 0x24], edx
je 0x4e716a
mov edx, dword [eax]
mov ebx, dword [eax + 8]
lea ecx, [esp + 0x28]
mov dword [esp + 0x10], edx
push 0
push ebx
call fcn.004cf250
add esp, 8
movdqu xmm3, xmmword [esp + 0x28]
pshufd xmm1, xmm3, 0xee
pshufd xmm0, xmm3, 0xff
movd ecx, xmm1
movd eax, xmm0
xor ecx, 2
or ecx, eax
jne 0x4e720f
test ebx, ebx
movq qword [esp + 0x28], xmm3
je 0x4e7319
setns al
js 0x4e7397
mov esi, dword [0x56bbf8]
mov byte [esp + 0xc], al
mov eax, dword [esi]
movdqa xmmword [esp + 0x80], xmm3
test eax, eax
jne 0x4e713a
call sub.kernel32.dll_GetProcessHeap
test eax, eax
je 0x4e7156
mov dword [esi], eax
push ebx
push 0
push eax
call sub.kernel32.dll_HeapAlloc
movdqa xmm3, xmmword [esp + 0x80]
mov esi, eax
test eax, eax
jne 0x4e731e
movzx eax, byte [esp + 0xc]
push eax
push ebx
call fcn.004085f0
add esp, 8
jmp 0x4e73a3
mov edx, dword [eax]
mov ebx, dword [eax + 8]
lea ecx, [esp + 0x28]
mov dword [esp + 0x10], edx
push 0x200000
push ebx
call fcn.004cf250
add esp, 8
movdqu xmm3, xmmword [esp + 0x28]
pshufd xmm1, xmm3, 0xee
pshufd xmm0, xmm3, 0xff
movd ecx, xmm1
movd eax, xmm0
xor ecx, 2
or ecx, eax
jne 0x4e720f
test ebx, ebx
movq qword [esp + 0x28], xmm3
je 0x4e7319
setns al
js 0x4e739e
mov esi, dword [0x56bbf8]
mov byte [esp + 0xc], al
mov eax, dword [esi]
movdqa xmmword [esp + 0x80], xmm3
test eax, eax
jne 0x4e71df
call sub.kernel32.dll_GetProcessHeap
test eax, eax
je 0x4e71fb
mov dword [esi], eax
push ebx
push 0
push eax
call sub.kernel32.dll_HeapAlloc
movdqa xmm3, xmmword [esp + 0x80]
mov esi, eax
test eax, eax
jne 0x4e731e
movzx eax, byte [esp + 0xc]
push eax
push ebx
call fcn.004085f0
add esp, 8
jmp 0x4e73a3
mov eax, dword [esp + 0x38]
movsd xmm1, qword [esp + 0x60]
mov esi, dword [ebp + 8]
movq xmm0, qword [esp + 0x40]
mov ebx, dword [esp + 0x4c]
mov dh, byte [esp + 0x58]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
movsd qword [esp + 0x70], xmm1
movsd xmm1, qword [esp + 0x68]
movsd xmm2, qword [esi + 8]
mov dword [esp + 0xc], eax
movzx eax, byte [esp + 0x48]
movsd qword [esp + 0x78], xmm1
movsd xmm1, qword [esi]
movsd qword [edi + 0x50], xmm2
movsd xmm2, qword [esp + 0x78]
mov byte [esp + 0x1c], al
movzx eax, word [esp + 0x49]
movsd qword [edi + 0x48], xmm1
movq xmm1, qword [esp + 0x70]
mov word [esp + 0x18], ax
movzx eax, byte [esp + 0x4b]
movzx esi, word [esp + 0x18]
mov byte [esp + 0x1a], al
mov eax, dword [esp + 0x50]
mov dl, byte [esp + 0x1a]
mov word [edi + 0x21], si
mov dword [esp + 0x20], eax
movzx eax, word [esp + 0x59]
mov byte [edi + 0x23], dl
mov word [esp + 0x14], ax
movzx eax, byte [esp + 0x5b]
movzx esi, word [esp + 0x14]
mov byte [esp + 0x16], al
mov eax, dword [esp + 0x5c]
mov word [edi + 0x31], si
mov dl, byte [esp + 0x16]
mov esi, dword [esp + 0x10]
mov byte [edi + 0x33], dl
movq qword [edi + 0x38], xmm1
movsd qword [edi + 0x40], xmm2
movdqu xmmword [edi], xmm3
mov dword [edi + 0x10], esi
mov esi, dword [esp + 0xc]
mov dl, byte [esp + 0x1c]
mov dword [edi + 0x14], esi
movq qword [edi + 0x18], xmm0
mov byte [edi + 0x20], dl
mov dword [edi + 0x24], ebx
mov ebx, dword [esp + 0x20]
mov dword [edi + 0x28], ebx
mov dword [edi + 0x2c], ecx
mov byte [edi + 0x30], dh
mov edx, dword [esp + 0x24]
movzx ecx, byte [ebp + 0xc]
mov dword [edi + 0x34], eax
movd dword [edi + 0x58], xmm0
mov dword [edi + 0x5c], eax
mov dword [edi + 0x60], edx
mov byte [edi + 0x64], cl
jmp 0x4e738f
mov esi, 1
pshufd xmm0, xmm3, 0x55
movd dword [esp + 0xc], xmm3
movd dword [esp + 0x1c], xmm0
push ebx
push dword [esp + 0x14]
push esi
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x24]
mov dword [edi + 0x10], edx
mov dword [edi + 0x14], esi
cmp dword [ecx + 4], 0
movzx eax, byte [ecx + 0xc]
mov esi, dword [esp + 0xc]
mov edx, dword [esp + 0x1c]
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
mov byte [edi + 0x20], al
mov dword [edi + 0x24], esi
mov dword [edi + 0x28], edx
mov byte [edi + 0x30], 2
mov dword [edi + 0xc], 0
mov dword [edi + 8], 2
je 0x4e738f
mov eax, dword [0x56bbf8]
push dword [esp + 0x10]
push 0
push dword [eax]
call sub.kernel32.dll_HeapFree
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.004085b0
jmp 0x4e73a3
call fcn.004085b0
ud2