Function at 0x10021820
Capabilities:
Access peb ldr_data
Get ntdll base address
Resolve function by parsing pe exports

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 0x100ab03b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x10
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov dword [edi + 0x10], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x64], 0
mov dword [edi + 0x60], 0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x68], 0
mov dword [edi + 0x74], 0
mov dword [edi + 0x70], 0
mov dword [edi + 0xbc], 0
mov dword [edi + 0xb8], 0
mov dword [edi + 0xc4], 0
mov dword [edi + 0xc0], 0
mov dword [edi + 0xcc], 0
mov dword [edi + 0xc8], 0
mov dword [edi + 0xd4], 0
mov dword [edi + 0xdc], 0
mov dword [edi + 0xec], 0
mov dword [edi + 0x118], 0x7f7fffff
mov dword [edi + 0x11c], 0xff7fffff
mov dword [edi + 0x120], 0xff7fffff
mov dword [edi + 0x128], 0x7f7fffff
mov dword [edi + 0x12c], 0xff7fffff
mov dword [edi + 0x130], 0xff7fffff
mov dword [edi + 0x154], 0
mov dword [edi + 0x150], 0
mov dword [edi + 0x158], 0
mov dword [edi + 0x178], 0
mov dword [edi + 0x174], 0
mov dword [edi + 0x17c], 0
mov dword [edi + 0x184], 0
mov dword [edi + 0x180], 0
mov dword [edi + 0x188], 0
mov dword [edi + 0x190], 0
mov dword [edi + 0x18c], 0
mov dword [edi + 0x194], 0
mov dword [edi + 0x19c], 0
mov dword [edi + 0x198], 0
mov dword [edi + 0x1a0], 0
mov dword [edi + 0xe0], 0
mov eax, dword [edi + 0xe0]
mov dword [edi + 0xd8], eax
mov dword [edi + 0xe4], 0
mov eax, dword [edi + 0xe4]
mov dword [edi + 0xdc], eax
mov eax, dword [edi + 0xe0]
mov dword [edi + 0xd0], eax
mov eax, dword [edi + 0xe4]
mov dword [edi + 0xd4], eax
mov eax, dword [edi + 0xe0]
mov dword [edi + 0xc8], eax
mov eax, dword [edi + 0xe4]
mov dword [edi + 0xcc], eax
mov dword [edi + 0xf4], 0
mov eax, dword [edi + 0xf4]
mov dword [edi + 0xf8], 0
mov dword [edi + 0xe8], eax
mov eax, dword [edi + 0xf8]
mov dword [edi + 0xec], eax
mov dword [edi + 0xfc], 0
mov dword [edi + 0xf0], 0
mov dword [edi + 0x100], 0xbf800000
mov dword [edi + 0x104], 0
mov dword [edi + 0x108], 0
movaps xmm0, xmmword [0x100c57d0]
movups xmmword [edi + 0x124], xmm0
mov dword [edi + 0x10c], 0
movups xmmword [edi + 0x114], xmm0
mov dword [edi + 0x110], 0
mov dword [edi + 0x140], 0
xorps xmm0, xmm0
mov dword [edi + 0x13c], 0
mov dword [edi + 0x134], 0
mov dword [edi + 0x138], 1
mov word [edi + 0x144], 0
mov byte [edi + 0x146], 0
mov dword [edi + 0x148], 0
mov dword [edi + 0x14c], 0
mov dword [edi + 0x15c], 0
mov dword [edi + 0x164], 1
mov dword [edi + 0x160], 1
mov dword [edi + 0x16c], 0
mov dword [edi + 0x168], 0
mov dword [edi + 0x170], 0xbf800000
movq qword [edi + 0x1a4], xmm0
mov dword [edi + 0x1ac], 0
mov dword [edi + 0x1b0], 0
mov dword [edi + 0x1b4], 0
mov dword [edi + 0x1b8], 0
mov dword [edi + 0x1bc], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x1c4], 0
mov dword [edi + 0x1c0], 0
mov dword [edi + 0x1c8], 0
mov dword [edi + 0x1cc], 0x7f7fffff
mov dword [edi + 0x1d0], 0x7f7fffff
mov dword [edi + 0x1d4], 0xff7fffff
mov dword [edi + 0x1d8], 0xff7fffff
mov dword [edi + 0x1dc], 0x7f7fffff
mov dword [edi + 0x1e0], 0x7f7fffff
mov dword [edi + 0x1e4], 0xff7fffff
mov dword [edi + 0x1e8], 0xff7fffff
mov dword [edi + 0x1ec], 0x7f7fffff
mov dword [edi + 0x1f0], 0x7f7fffff
mov dword [edi + 0x1f4], 0xff7fffff
mov dword [edi + 0x1f8], 0xff7fffff
mov dword [edi + 0x1fc], 0x7f7fffff
mov dword [edi + 0x200], 0x7f7fffff
mov dword [edi + 0x204], 0xff7fffff
mov dword [edi + 0x208], 0xff7fffff
mov dword [edi + 0x20c], 0x7f7fffff
mov dword [edi + 0x210], 0x7f7fffff
mov dword [edi + 0x214], 0xff7fffff
mov dword [edi + 0x218], 0xff7fffff
mov dword [edi + 0x224], 0
mov dword [edi + 0x230], 0
mov dword [edi + 0x22c], 0
mov dword [edi + 0x228], 0
movups xmmword [edi + 0x234], xmm0
movups xmmword [edi + 0x244], xmm0
mov dword [edi + 0x258], 0
mov dword [edi + 0x254], 0
mov dword [edi + 0x25c], 0
mov dword [edi + 0x264], 0
mov dword [edi + 0x260], 0
mov dword [edi + 0x268], 0
mov eax, dword [ebx + 8]
lea ecx, [edi + 0x278]
add eax, 0x18b4
mov byte [ebp - 4], 3
push eax
call fcn.1001e740
lea esi, [edi + 0x308]
mov byte [ebp - 4], 4
mov edi, 2
nop word [eax + eax]
mov ecx, esi
call fcn.1001ea20
add esi, 0x10
sub edi, 1
jne 0x10021d50
mov esi, dword [ebx + 0xc]
mov edi, dword [ebp - 0x1c]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x10021d68
mov eax, dword [0x100d83e0]
sub esi, ecx
test eax, eax
je 0x10021d80
inc dword [eax + 0x36c]
push dword [0x100d83dc]
inc esi
push esi
call fcn.1001f8e0
push esi
mov esi, dword [ebx + 0xc]
push esi
push eax
call fcn.10073b90
mov dword [edi], eax
add esp, 0x14
mov cl, byte [esi]
lea eax, [esi + 1]
or edx, 0xffffffff
mov byte [ebp - 0x11], cl
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], 0xffffffff
test cl, cl
je 0x10021df5
mov edi, dword [ebp - 0x20]
nop dword [eax]
cmp cl, 0x23
jne 0x10021dcf
cmp byte [eax], cl
jne 0x10021dcf
cmp byte [eax + 1], cl
cmove edx, edi
movzx eax, byte [ebp - 0x11]
movzx ecx, dl
xor ecx, eax
shr edx, 8
mov eax, dword [ebp - 0x18]
xor edx, dword [ecx*4 + 0x100bc900]
mov cl, byte [eax]
inc eax
mov byte [ebp - 0x11], cl
mov dword [ebp - 0x18], eax
test cl, cl
jne 0x10021dc0
mov edi, dword [ebp - 0x1c]
not edx
lea ecx, [edi + 0x1c0]
mov dword [edi + 4], edx
mov eax, dword [ecx]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx + 4]
cmp dword [ebp - 0x18], eax
jne 0x10021e47
mov edx, dword [ebp - 0x18]
inc edx
mov dword [ebp - 0x18], edx
test eax, eax
je 0x10021e25
cdq
sub eax, edx
mov edx, dword [ebp - 0x18]
sar eax, 1
add eax, dword [ecx + 4]
jmp 0x10021e2a
mov eax, 8
cmp eax, edx
cmovg edx, eax
push edx
call fcn.100308c0
mov eax, dword [edi + 0x1c0]
lea ecx, [edi + 0x1c0]
mov edx, dword [edi + 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx + 8]
mov esi, dword [ebp - 0x18]
mov dword [eax + esi*4], edx
inc dword [ecx]
mov esi, dword [ebx + 0xc]
mov dword [edi + 0x1c], 0
mov eax, dword [edi + 0x1c]
mov dword [edi + 0x14], eax
mov dword [edi + 0x20], 0
lea edx, [esi + 1]
mov eax, dword [edi + 0x20]
mov dword [edi + 0x18], eax
mov dword [edi + 0x34], 0
mov eax, dword [edi + 0x34]
mov dword [edi + 0x38], 0
mov dword [edi + 0x2c], eax
mov eax, dword [edi + 0x38]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x30], eax
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x10021ec0
sub esi, edx
xor edx, edx
lea eax, [esi + 1]
mov dword [edi + 0x4c], eax
mov ecx, dword [ecx]
mov eax, dword [edi + 0x1c8]
push dword [eax + ecx*4 - 4]
mov ecx, 0x100c2578
call fcn.100200b0
mov ecx, dword [0x100d83e0]
add esp, 4
cmp dword [ecx + 0x19ac], eax
jne 0x10021efe
mov dword [ecx + 0x19b4], eax
cmp dword [ecx + 0x19b0], eax
jne 0x10021f0d
mov byte [ecx + 0x19c0], 1
movaps xmm0, xmmword [0x100c57d0]
lea ecx, [edi + 0x278]
mov dword [edi + 0x50], eax
mov eax, dword [ebp - 0x20]
mov word [edi + 0x86], ax
mov word [edi + 0x88], ax
mov dword [edi + 0xc0], 0x7f7fffff
mov eax, dword [edi + 0xc0]
mov dword [edi + 0xb8], eax
mov dword [edi + 0xc4], 0x7f7fffff
mov eax, dword [edi + 0xc4]
mov dword [edi + 0xbc], eax
mov eax, dword [edi]
mov dword [edi + 0x274], ecx
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0x7f7fffff
mov dword [edi + 0x64], 0x7f7fffff
mov dword [edi + 0x68], 0x3f000000
mov dword [edi + 0x6c], 0x3f000000
mov dword [edi + 0x70], 0
mov dword [edi + 0x74], 0
mov dword [edi + 0x78], 0
mov dword [edi + 0x7c], 0
mov word [edi + 0x80], 0
mov dword [edi + 0x82], 0xff00
mov dword [edi + 0x8c], 0
mov dword [edi + 0x94], 0xffffffff
mov dword [edi + 0x90], 0xffffffff
mov byte [edi + 0x98], 0
mov dword [edi + 0x9c], 0
mov dword [edi + 0xa0], 0xffffffff
mov dword [edi + 0xa8], 0
mov dword [edi + 0xa4], 0
mov dword [edi + 0xb4], 0xf
mov dword [edi + 0xb0], 0xf
mov dword [edi + 0xac], 0xf
mov dword [edi + 0x21c], 0xffffffff
mov dword [edi + 0x220], 0
mov dword [edi + 0x26c], 0x3f800000
mov dword [edi + 0x270], 0xffffffff
mov dword [ecx + 0x2c], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword [edi + 0x2ec], 0
mov dword [edi + 0x2f0], 0
mov dword [edi + 0x2f4], 0
mov dword [edi + 0x2f8], 0
mov dword [edi + 0x304], 0
mov dword [edi + 0x300], 0
movups xmmword [edi + 0x318], xmm0
movups xmmword [edi + 0x308], xmm0
mov dword [edi + 0x2fc], 0
mov dword [edi + 0x32c], 0xffffffff
mov dword [edi + 0x328], 0xffffffff
mov dword [edi + 0x334], 0x7fffffff
mov dword [edi + 0x330], 0x7fffffff
mov dword [edi + 0x33c], 0x7fffffff
mov dword [edi + 0x338], 0x7fffffff
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8