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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], eax
mov esi, dword [ebp + 0x10]
lea edi, [ebp - 0x80]
xor eax, eax
push ebp
push 0x4e1833
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 0x14]
test byte [eax + 0x18], 1
setne bl
test bl, bl
je 0x4e15c4
lea ecx, [ebp - 0x20]
mov edx, esi
mov eax, dword [ebp - 0x24]
call fcn.004e0738
lea ecx, [ebp - 0x3c]
mov edx, esi
mov eax, dword [ebp - 0x28]
call fcn.004e0738
lea ecx, [ebp - 0x40]
mov edx, esi
mov eax, dword [ebp - 0x2c]
call fcn.004e0738
lea ecx, [ebp - 8]
mov edx, esi
mov eax, dword [ebp + 0x18]
call fcn.004e0738
jmp 0x4e15f0
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x24]
call fcn.00404ea0
lea eax, [ebp - 0x3c]
mov edx, dword [ebp - 0x28]
call fcn.00404ea0
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x2c]
call fcn.004e0f78
lea edx, [ebp - 8]
mov eax, dword [ebp + 0x18]
call fcn.004e0f78
lea edx, [ebp - 0x84]
mov eax, dword [ebp - 0x2c]
call fcn.00409bf8
mov eax, dword [ebp - 0x84]
lea ecx, [ebp - 0x1c]
mov edx, esi
call fcn.004e0738
mov eax, edi
xor ecx, ecx
mov edx, 0x40
call fcn.0040379c
mov edx, edi
mov eax, 0x4e1844
mov ecx, 8
call fcn.00402e50
mov dword [edi + 8], 3
mov eax, dword [ebp - 0x20]
call fcn.004050d8
mov esi, eax
mov word [edi + 0x1c], si
mov word [edi + 0x1e], si
mov dword [edi + 0x20], 0x40
mov eax, dword [ebp - 0x40]
call fcn.004050d8
mov esi, eax
mov word [edi + 0x24], si
mov word [edi + 0x26], si
movzx eax, word [edi + 0x1c]
add eax, dword [edi + 0x20]
mov dword [edi + 0x28], eax
mov eax, dword [ebp - 0x3c]
call fcn.004050d8
mov esi, eax
mov word [edi + 0x2c], si
mov word [edi + 0x2e], si
movzx eax, word [edi + 0x24]
add eax, dword [edi + 0x28]
mov dword [edi + 0x30], eax
test bl, bl
je 0x4e1692
mov dword [edi + 0x3c], 1
jmp 0x4e1699
mov dword [edi + 0x3c], 2
mov eax, dword [edi + 0x3c]
or eax, 4
or eax, 0x200
or eax, 0x8000
mov dword [edi + 0x3c], eax
cmp dword [ebp + 0xc], 0
jne 0x4e16d9
lea ecx, [ebp - 0x34]
mov edx, dword [ebp + 0x14]
add edx, 0x10
mov eax, dword [ebp + 0x18]
call fcn.004e089c
lea ecx, [ebp - 0x38]
mov edx, dword [ebp + 0x14]
add edx, 0x10
mov eax, dword [ebp - 8]
call fcn.004e0a30
jmp 0x4e175f
mov eax, dword [ebp + 0xc]
dec eax
sub eax, 2
jae 0x4e1746
mov eax, dword [ebp + 0x14]
test byte [eax + 0x1a], 8
je 0x4e170f
or dword [edi + 0x3c], 0x80000
push ebp
lea eax, [ebp - 0x38]
call fcn.00404e08
push eax
lea eax, [ebp - 0x34]
call fcn.00404e08
xor ecx, ecx
pop edx
call fcn.004e0fa4
pop ecx
jmp 0x4e175f
lea ecx, [ebp - 0x38]
mov edx, dword [ebp + 0x14]
add edx, 0x10
mov eax, dword [ebp - 8]
call fcn.004e0a30
cmp dword [ebp + 0xc], 2
jne 0x4e1733
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 0x38]
call fcn.00404ea0
jmp 0x4e175f
lea ecx, [ebp - 0x34]
mov edx, dword [ebp + 0x14]
add edx, 0x10
mov eax, dword [ebp + 0x18]
call fcn.004e089c
jmp 0x4e175f
push ebp
lea eax, [ebp - 0x38]
call fcn.00404e08
push eax
lea eax, [ebp - 0x34]
call fcn.00404e08
pop edx
call fcn.004e12c8
pop ecx
mov eax, dword [ebp - 0x34]
call fcn.004050d8
mov ebx, eax
mov word [edi + 0xc], bx
mov word [edi + 0xe], bx
movzx eax, word [edi + 0x2c]
add eax, dword [edi + 0x30]
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x38]
call fcn.004050d8
mov ebx, eax
mov word [edi + 0x14], bx
mov word [edi + 0x16], bx
movzx eax, word [edi + 0xc]
add eax, dword [edi + 0x10]
mov dword [edi + 0x18], eax
mov word [edi + 0x34], 0
mov word [edi + 0x36], 0
movzx eax, word [edi + 0x14]
add eax, dword [edi + 0x18]
mov dword [edi + 0x38], eax
lea eax, [ebp - 0x30]
mov edx, 0x40
call fcn.00405464
mov edx, dword [ebp - 0x30]
mov eax, edi
mov ecx, 0x40
call fcn.00402e50
push dword [ebp - 0x30]
push dword [ebp - 0x20]
push dword [ebp - 0x40]
push dword [ebp - 0x3c]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
lea eax, [ebp - 0x30]
mov edx, 6
call fcn.00405198
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x30]
call fcn.004dea4c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e183a
lea eax, [ebp - 0x84]
call fcn.00404e08
lea eax, [ebp - 0x40]
mov edx, 5
call fcn.00404e2c
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00404e2c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404e2c
ret