Function at 0x10022d80
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e54ee
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x10
push esi
push edi
mov eax, dword [0x1011d1c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
xor eax, eax
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov byte [ebp - 4], 1
movups xmmword [edi + 0x18], xmm0
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], 7
mov word [edi + 0x18], ax
mov byte [ebp - 4], 2
mov byte [edi + 0x30], al
mov eax, dword [ebx + 0x10]
mov dword [edi + 0x34], eax
test ecx, ecx
je 0x10022e44
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10022e27
sub ecx, edx
sar ecx, 1
push ecx
push dword [ebp - 0x18]
mov ecx, edi
call fcn.10023c00
mov edx, dword [ebp - 0x14]
test edx, edx
je 0x10022f7c
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x14], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10022e54
sub ecx, dword [ebp - 0x14]
sar ecx, 1
push ecx
push edx
lea ecx, [edi + 0x18]
call fcn.10023c00
cmp dword [edi + 0x28], 0
mov edx, 0x27
lea ecx, [edx - 5]
je 0x10022ece
cmp dword [edi + 0x2c], 7
lea eax, [edi + 0x18]
jbe 0x10022e88
mov eax, dword [edi + 0x18]
movzx eax, word [eax]
cmp dx, ax
je 0x10022e95
cmp cx, ax
jne 0x10022ece
mov eax, dword [edi + 0x28]
lea edx, [edi + 0x18]
mov ecx, 1
cmp eax, ecx
cmovb ecx, eax
cmp dword [edi + 0x2c], 7
jbe 0x10022eae
mov edx, dword [edi + 0x18]
sub eax, ecx
lea ecx, [edx + ecx*2]
mov dword [ebp - 0x14], eax
lea eax, [eax*2 + 2]
push eax
push ecx
push edx
call fcn.100c0760
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov dword [edi + 0x28], eax
mov ecx, dword [edi + 0x28]
test ecx, ecx
je 0x10022f12
mov edx, dword [edi + 0x2c]
lea eax, [edi + 0x18]
cmp edx, 7
jbe 0x10022ee2
mov eax, dword [eax]
movzx eax, word [eax + ecx*2 - 2]
mov ecx, 0x27
cmp cx, ax
je 0x10022efb
mov ecx, 0x22
cmp cx, ax
jne 0x10022f12
mov eax, dword [edi + 0x28]
lea ecx, [edi + 0x18]
dec eax
mov dword [ecx + 0x10], eax
cmp edx, 7
jbe 0x10022f0c
mov ecx, dword [ecx]
xor edx, edx
mov word [ecx + eax*2], dx
cmp dword [edi + 0x28], 0
je 0x10022f7c
cmp dword [edi + 0x14], 7
lea eax, [edi + 0x18]
mov ecx, dword [edi + 0x10]
mov edx, edi
jbe 0x10022f28
mov edx, dword [edi]
cmp dword [eax + 0x14], 7
mov esi, dword [eax + 0x10]
mov dword [ebp - 0x18], esi
jbe 0x10022f36
mov eax, dword [eax]
cmp ecx, esi
cmovb esi, ecx
test esi, esi
je 0x10022f5e
sub eax, edx
mov dword [ebp - 0x14], eax
movzx ecx, word [edx + eax]
movzx eax, word [edx]
cmp cx, ax
jne 0x10022f7c
mov eax, dword [ebp - 0x14]
add edx, 2
sub esi, 1
jne 0x10022f44
mov ecx, dword [edi + 0x10]
cmp dword [ebp - 0x18], ecx
jb 0x10022f7c
ja 0x10022f7c
lea eax, [edi + 0x18]
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 7
jbe 0x10022f77
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
sub esp, 0x28
mov ecx, esp
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x14], ecx
mov dword [ecx + 0x24], 0
mov byte [ebp - 4], 3
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x10022fb1
mov eax, dword [eax]
push ecx
mov esi, dword [eax]
mov ecx, esi
call dword [0x100f5330]
mov ecx, dword [ebx + 0x38]
call esi
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x24], eax
mov byte [ebp - 4], 4
mov byte [ebp - 4], 2
mov ecx, edi
call fcn.100231b0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x10022ff3
mov esi, dword [eax]
lea ecx, [ebx + 0x14]
cmp eax, ecx
setne dl
mov esi, dword [esi + 0x10]
mov ecx, esi
movzx edx, dl
push edx
call dword [0x100f5330]
mov ecx, dword [ebx + 0x38]
call esi
mov dword [ebx + 0x38], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x34