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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov ebx, edx
mov edi, ecx
mov edx, dword [edx + 0x50]
movzx eax, byte [ebx + 0x95]
mov ecx, dword [ebx + 0x5c]
movsd xmm0, qword [ebx + 0x84]
mov esi, dword [ebx + 0x54]
mov dword [esp + 0x24], edx
mov byte [esp + 0xf], al
mov eax, dword [ebx + 0x8c]
test ecx, ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], ecx
movaps xmmword [esp + 0x40], xmm0
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0x38]
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0x3c]
mov dword [esp + 0x3c], eax
je 0x52148e
xor edx, edx
cmp ecx, 0x20000000
setb al
jae 0x521822
mov dl, al
lea esi, [ecx*4]
add edx, edx
test esi, esi
mov dword [esp + 4], esi
js 0x521829
mov dword [esp + 8], edx
je 0x521497
mov eax, dword [0x607474]
movzx eax, byte [eax]
mov eax, dword [0x6320d0]
test eax, eax
je 0x52149f
mov esi, dword [esp + 4]
jmp 0x5214b5
mov eax, 2
xor esi, esi
jmp 0x5214c6
mov esi, dword [esp + 4]
mov eax, edx
jmp 0x5214be
call sub.KERNEL32.dll_GetProcessHeap
mov esi, dword [esp + 4]
test eax, eax
je 0x521804
mov dword [0x6320d0], eax
push esi
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x521804
push esi
push dword [esp + 0x20]
mov dword [esp + 0x24], eax
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov esi, dword [ebx + 0x68]
mov edx, dword [ebx + 0x60]
test esi, esi
je 0x521554
mov dword [esp + 4], edx
xor edx, edx
cmp esi, 0x8000000
setb al
jae 0x521830
mov ecx, esi
mov dl, al
shl ecx, 4
shl edx, 3
test ecx, ecx
js 0x521830
mov dword [esp + 0x18], edx
je 0x52155d
mov eax, dword [0x607474]
movzx eax, byte [eax]
mov eax, dword [0x6320d0]
mov dword [esp + 8], ecx
test eax, eax
jne 0x52153a
call sub.KERNEL32.dll_GetProcessHeap
mov ecx, dword [esp + 8]
test eax, eax
je 0x521813
mov dword [0x6320d0], eax
push ecx
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
test eax, eax
jne 0x52156d
jmp 0x521813
mov eax, 8
xor ecx, ecx
jmp 0x52156d
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 4]
test eax, eax
je 0x521813
mov dword [esp + 4], esi
push ecx
push edx
mov dword [esp + 0x10], eax
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov ecx, dword [ebx + 0x74]
mov edx, dword [ebx + 0x6c]
test ecx, ecx
mov dword [esp + 0x18], ecx
je 0x52160b
mov dword [esp], edx
xor edx, edx
cmp ecx, 0x20000000
setb al
jae 0x521837
mov dl, al
lea esi, [ecx*4]
add edx, edx
test esi, esi
mov dword [esp + 0x10], esi
js 0x521837
mov dword [esp + 0x14], edx
je 0x5217cb
mov eax, dword [0x607474]
movzx eax, byte [eax]
mov eax, dword [0x6320d0]
test eax, eax
jne 0x5215ea
call sub.KERNEL32.dll_GetProcessHeap
mov ecx, dword [esp + 0x14]
test eax, eax
je 0x5217dc
mov dword [0x6320d0], eax
push dword [esp + 0x10]
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
mov edx, dword [esp]
mov ecx, dword [esp + 0x14]
test eax, eax
je 0x5217dc
mov ecx, dword [esp + 0x10]
jmp 0x521612
mov eax, 2
xor ecx, ecx
push ecx
push edx
mov dword [esp + 0x18], eax
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov edx, dword [ebx + 0x80]
mov ecx, dword [ebx + 0x78]
test edx, edx
mov dword [esp + 0x14], edx
je 0x5216a5
xor eax, eax
cmp edx, 0x2492493
mov dword [esp + 0x20], ecx
setb byte [esp]
jae 0x52183e
movzx ecx, byte [esp]
imul esi, edx, 0x38
mov al, cl
shl eax, 3
test esi, esi
js 0x52183e
mov dword [esp], eax
je 0x5217eb
mov eax, dword [0x607474]
movzx eax, byte [eax]
mov eax, dword [0x6320d0]
test eax, eax
jne 0x52168b
call sub.KERNEL32.dll_GetProcessHeap
mov edx, dword [esp]
test eax, eax
je 0x5217f8
mov dword [0x6320d0], eax
push esi
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
mov edx, dword [esp]
test eax, eax
je 0x5217f8
mov ecx, dword [esp + 0x20]
jmp 0x5216ac
mov eax, 8
xor esi, esi
push esi
push ecx
mov esi, eax
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [ebx]
mov ecx, dword [ebx + 0x40]
mov edx, dword [ebx + 0x48]
xor eax, 0x2e
mov dword [esp], ecx
mov ecx, dword [ebx + 0x44]
mov dword [esp + 0x30], edx
or eax, dword [ebx + 4]
mov eax, dword [ebx + 0x4c]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x2c], eax
jne 0x5216e7
movaps xmm1, xmmword [0x5fe200]
jmp 0x521705
lea ecx, [esp + 0x58]
mov edx, ebx
call fcn.00520fe0
movups xmm2, xmmword [ebx + 0x10]
mov eax, dword [ebx + 0x24]
mov ecx, dword [ebx + 0x20]
movups xmm0, xmmword [ebx + 0x28]
movups xmm1, xmmword [esp + 0x58]
mov edx, dword [esp + 0x24]
movaps xmm3, xmmword [esp + 0x40]
mov dword [edi + 0x50], edx
mov edx, dword [esp + 0x34]
movlps qword [edi + 0x84], xmm3
mov dword [edi + 0x8c], edx
mov edx, dword [ebx + 0x90]
mov dword [edi + 0x90], edx
movzx edx, byte [ebx + 0x94]
mov ebx, dword [esp + 0x18]
mov byte [edi + 0x94], dl
movzx edx, byte [esp + 0xf]
mov byte [edi + 0x95], dl
mov edx, dword [esp + 0x38]
mov dword [edi + 0x38], edx
mov edx, dword [esp + 0x3c]
mov dword [edi + 0x3c], edx
mov edx, dword [esp + 0x1c]
mov dword [edi + 0x54], edx
mov edx, dword [esp + 0x28]
mov dword [edi + 0x58], edx
mov dword [edi + 0x5c], edx
mov edx, dword [esp + 8]
mov dword [edi + 0x60], edx
mov edx, dword [esp + 4]
mov dword [edi + 0x64], edx
mov dword [edi + 0x68], edx
mov edx, dword [esp + 0x10]
mov dword [edi + 0x6c], edx
mov dword [edi + 0x70], ebx
mov dword [edi + 0x74], ebx
mov dword [edi + 0x78], esi
mov esi, dword [esp + 0x14]
mov ebx, dword [esp]
mov dword [edi + 0x7c], esi
mov dword [edi + 0x80], esi
mov esi, dword [esp + 0x20]
mov dword [edi + 0x40], ebx
mov ebx, dword [esp + 0x30]
mov dword [edi + 0x44], esi
mov esi, dword [esp + 0x2c]
mov dword [edi + 0x48], ebx
mov dword [edi + 0x4c], esi
movups xmmword [edi], xmm1
movups xmmword [edi + 0x10], xmm2
mov dword [edi + 0x20], ecx
mov dword [edi + 0x24], eax
movups xmmword [edi + 0x28], xmm0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [esp + 0x14]
mov edx, dword [esp]
mov eax, ecx
test eax, eax
jne 0x521605
push dword [esp + 0x10]
push ecx
call fcn.0041a8c0
add esp, 8
jmp 0x521843
mov edx, dword [esp]
mov eax, edx
test eax, eax
jne 0x52169f
push esi
push edx
call fcn.0041a8c0
add esp, 8
jmp 0x521843
push esi
push dword [esp + 0xc]
call fcn.0041a8c0
add esp, 8
ud2
push ecx
push dword [esp + 0x1c]
call fcn.0041a8c0
add esp, 8
jmp 0x521843
call fcn.0041a880
ud2
call fcn.0041a880
ud2
call fcn.0041a880
jmp 0x521843
call fcn.0041a880
jmp 0x521843
call fcn.0041a880
ud2