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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x303328c0]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push ebx
push esi
and eax, 0x40
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0x3ff80]
mov esi, dword [ecx + 0x5c]
mov ecx, dword [edi + 0xd0]
movsx edx, word [edi + 0x910]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0xc8]
shl eax, 5
add eax, esi
mov esi, dword [eax + 0x18]
shl ecx, 4
cmp ecx, edx
mov dword [esp + 0x14], eax
lea ebx, [esi + 0x80]
jle 0x3022b8fc
mov eax, dword [edi + 0x3ff80]
mov ecx, dword [eax + 0x68]
mov eax, dword [edi + 0xd0]
lea edx, [ecx + eax*4]
push 0xffffffffffffffff
push edx
call fcn.3024c360
mov ax, word [edi + 0xd0]
add esp, 8
shl ax, 4
mov word [edi + 0x910], ax
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 0xc]
test dl, 0x40
mov dword [esp + 0xc], edx
je 0x3022b91a
mov ecx, dword [edi + 0x48]
test ecx, ecx
jne 0x3022b91a
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0x5140
jmp 0x3022b944
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x3022b93b
test dl, 0xf
je 0x3022b93b
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0x5108
mov ecx, dword [ebp + 0xc]
or dword [ecx], 0x5008
jmp 0x3022b954
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0x5108
mov ecx, dword [ebp + 0xc]
or dword [ecx], 0xf040
cmp dword [esp + 0x10], 0
jne 0x3022b958
or byte [ecx + 1], 1
test dl, 7
je 0x3022b985
mov edi, dword [edi + 0x7684]
mov eax, 0x1010101
mov dword [edi + 0xc], eax
mov dword [edi + 8], eax
mov dword [edi + 4], eax
mov dword [edi], eax
mov ecx, dword [esp + 0x1c]
call fcn.3028e0e3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test byte [ecx], 8
je 0x3022b9eb
mov edx, dword [edi + 0x767c]
mov ecx, dword [esi]
mov dword [edx], ecx
mov ecx, dword [esi + 0x40]
mov edx, dword [edi + 0x767c]
mov dword [edx + 0x40], ecx
mov cl, byte [ebx]
mov edx, dword [edi + 0x7680]
mov byte [edx], cl
mov ecx, dword [esp + 0xc]
test ch, 0xc0
je 0x3022b9b9
movsx ecx, byte [ebx + 0x10]
jmp 0x3022b9bc
or ecx, 0xffffffff
mov edx, dword [edi + 0x7680]
mov byte [edx + 0x10], cl
mov ecx, dword [edi + 0x7684]
mov byte [ecx], 0
mov edx, dword [edi + 0x7688]
mov al, byte [eax + 0x10]
mov byte [edx], al
mov ecx, dword [esp + 0x1c]
call fcn.3028e0e3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [edi + 0x48], 0
mov ecx, dword [edi + 0x7680]
mov eax, dword [edi + 0x767c]
mov dword [esp + 0x10], ecx
jne 0x3022bacd
cmp dword [edi + 0x3c], 0
je 0x3022bacd
movq mm0, qword [esi + 8]
movq mm1, qword [esi + 0x10]
movq mm2, qword [esi + 0x18]
movq mm3, qword [esi]
movq qword [eax], mm3
movq qword [eax + 8], mm0
movq qword [eax + 0x10], mm1
movq qword [eax + 0x18], mm2
movq mm0, qword [esi + 0x28]
movq mm1, qword [esi + 0x30]
movq mm2, qword [esi + 0x38]
movq mm3, qword [esi + 0x20]
movq qword [eax + 0x20], mm3
movq qword [eax + 0x28], mm0
movq qword [eax + 0x30], mm1
movq qword [eax + 0x38], mm2
mov edi, dword [ebx + 4]
mov edx, dword [ebx]
mov dword [ecx], edx
mov dword [ecx + 4], edi
mov edx, dword [ebx + 0xc]
mov edi, dword [ebx + 8]
mov dword [ecx + 0xc], edx
mov edx, dword [esp + 0xc]
test dh, 0xc0
mov dword [ecx + 8], edi
je 0x3022bbad
movq mm0, qword [esi + 0x48]
movq mm1, qword [esi + 0x50]
movq mm2, qword [esi + 0x58]
movq mm3, qword [esi + 0x40]
movq qword [eax + 0x40], mm3
movq qword [eax + 0x48], mm0
movq qword [eax + 0x50], mm1
movq qword [eax + 0x58], mm2
movq mm0, qword [esi + 0x68]
movq mm1, qword [esi + 0x70]
movq mm2, qword [esi + 0x78]
movq mm3, qword [esi + 0x60]
movq qword [eax + 0x60], mm3
movq qword [eax + 0x68], mm0
movq qword [eax + 0x70], mm1
movq qword [eax + 0x78], mm2
mov eax, dword [ebx + 0x14]
mov edx, dword [ebx + 0x10]
mov dword [ecx + 0x10], edx
mov dword [ecx + 0x14], eax
mov eax, dword [ebx + 0x1c]
mov edx, dword [ebx + 0x18]
mov dword [ecx + 0x18], edx
mov dword [ecx + 0x1c], eax
jmp 0x3022bbbc
and edx, 0xc000
mov dword [esp + 0x18], edx
mov edx, 0
setne dl
inc edx
test edx, edx
mov dword [esp + 0xc], edx
jle 0x3022bba5
lea edx, [esi + 0x30]
mov esi, dword [esp + 0x10]
lea edi, [ebx + 0xf]
add ecx, 0xc
add eax, 0x18
sub ebx, esi
mov esi, dword [esp + 0xc]
mov dword [esp + 0xc], esi
mov esi, dword [edx - 0x30]
mov dword [eax - 4], esi
mov dword [eax - 8], esi
mov dword [eax - 0x14], esi
mov dword [eax - 0x18], esi
mov esi, dword [edx - 0x24]
mov dword [eax + 4], esi
mov dword [eax], esi
mov dword [eax - 0xc], esi
mov dword [eax - 0x10], esi
mov esi, dword [edx]
mov dword [eax + 0x1c], esi
mov dword [eax + 0x18], esi
mov dword [eax + 0xc], esi
mov dword [eax + 8], esi
mov esi, dword [edx + 0xc]
mov dword [eax + 0x24], esi
mov dword [eax + 0x20], esi
mov dword [eax + 0x14], esi
mov dword [eax + 0x10], esi
movzx esi, byte [edi - 0xf]
imul esi, esi, 0x101
mov word [ecx - 8], si
mov word [ecx - 0xc], si
movzx esi, byte [edi - 0xc]
imul esi, esi, 0x101
mov word [ecx - 6], si
mov word [ecx - 0xa], si
movzx esi, byte [ebx + ecx]
imul esi, esi, 0x101
mov word [ecx], si
mov word [ecx - 4], si
movzx esi, byte [edi]
imul esi, esi, 0x101
mov word [ecx + 2], si
mov word [ecx - 2], si
mov esi, dword [esp + 0xc]
add edx, 0x40
add eax, 0x40
add edi, 0x10
add ecx, 0x10
dec esi
mov dword [esp + 0xc], esi
jne 0x3022bb06
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x3022bbbc
or eax, 0xffffffff
mov dword [ecx + 0x1c], eax
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x7684]
xor edx, edx
mov dword [eax + 0xc], edx
mov dword [eax + 8], edx
mov dword [eax + 4], edx
mov dword [eax], edx
mov eax, dword [esp + 0x14]
movzx eax, byte [eax + 0x10]
mov ecx, dword [ecx + 0x7688]
imul eax, eax, 0x1010101
mov dword [ecx + 0xc], eax
mov dword [ecx + 8], eax
mov dword [ecx + 4], eax
mov dword [ecx], eax
mov ecx, dword [esp + 0x1c]
call fcn.3028e0e3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc