Function at 0x10050020
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101b7c65
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x1021e964]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.10047280
mov edi, eax
mov dword [edi], 0x100e0a00
mov dword [edi + 4], 0x100d8ea0
mov dword [edi + 8], fcn.100d8fd0
mov dword [edi + 0xc], fcn.100e3650
mov dword [edi + 0x10], fcn.100db9d0
mov dword [edi + 0x14], 0x100dbb10
mov dword [edi + 0x18], fcn.100def20
mov dword [edi + 0x1c], 0x100df160
mov dword [edi + 0x20], fcn.100e4250
mov dword [edi + 0x24], fcn.100dea30
mov dword [edi + 0x28], fcn.100e2c50
mov dword [edi + 0x2c], 0x100db760
mov dword [edi + 0x30], 0x100e3ff0
mov dword [edi + 0x34], 0x100da720
mov dword [edi + 0x38], 0x100d9fc0
mov dword [edi + 0x3c], 0x100e4fa0
mov dword [edi + 0x40], 0x100e0530
mov dword [edi + 0x44], 0x100dc8c0
mov dword [edi + 0x48], 0x100df620
mov dword [edi + 0x4c], 0x100d9850
mov dword [edi + 0x50], 0x100dab00
mov byte [edi + 0x58], 1
call fcn.100d8e80
mov ecx, dword [ebx + 0xe0]
mov eax, ecx
shr eax, 1
mov byte [ebx + 0xc9], 1
test al, 1
je 0x10050106
test cl, 1
je 0x10050111
mov ecx, edi
call fcn.10162e10
test al, al
je 0x10050125
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [edi + 0x18]
mov ecx, esi
call dword [0x1021649c]
call esi
cmp eax, 0x12e
je 0x1005015b
cmp eax, 0x135
je 0x1005015b
mov byte [edi + 0x58], 0
mov eax, 2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, word [0x1022f6f1]
mov ecx, dword [ebx + 0x110]
push eax
call fcn.100a0d90
mov esi, 0x10010b20
mov dword [ebp - 0x30], 0
test eax, eax
mov dword [ebp - 0x2c], 0xf
mov edx, esi
mov byte [ebp - 0x40], 0
cmovne edx, eax
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10050191
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.1004a870
mov dword [ebp - 0x44], 0x10010c38
movzx eax, word [0x1022f6d7]
mov ecx, dword [ebx + 0x110]
push eax
mov dword [ebp - 4], 0
call fcn.100a0d90
test eax, eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xf
cmovne esi, eax
mov byte [ebp - 0x24], 0
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100501e1
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x24]
call fcn.1004a870
mov dword [ebp - 0x28], 0x10010c38
push 0
push 1
push 0
push 0xffffffffffffffed
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x28]
push eax
push 4
push 0
push dword [ebx + 0xbc]
lea eax, [ebp - 0x48]
push eax
call fcn.10053d30
mov edx, dword [ebp - 0x10]
add esp, 0x28
mov dword [ebp - 0x28], 0x10010c38
cmp edx, 0x10
jb 0x10050260
mov ecx, dword [ebp - 0x24]
inc edx
mov eax, ecx
mov byte [ebp - 4], 2
cmp edx, 0x1000
jb 0x10050256
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100502ce
push edx
push ecx
call fcn.1018d246
add esp, 8
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x44], 0x10010c38
cmp edx, 0x10
jb 0x100502b7
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
mov dword [ebp - 4], 3
cmp edx, 0x1000
jb 0x100502ad
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100502ce
push edx
push ecx
call fcn.1018d246
add esp, 8
mov eax, 3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.100be3b4
int3