Function at 0x422acd
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47ce41
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x4a83e0]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
push edi
mov eax, dword [0x4a83e0]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, ecx
xor ebx, ebx
inc ebx
or dword [edi + 0xa8], ebx
mov dword [edi + 0x5c], eax
or dword [edi + 0xa8], 2
mov dword [esp + 0x30], edi
add edi, 0x58
mov dword [edi + 8], ebx
or dword [edi + 0x50], 4
mov dword [edi + 0x18], ebx
or dword [edi + 0x50], 8
cmp dword [edi + 0xc], 0x4a8000
mov dword [esp + 0x38], edi
jne 0x422b5f
push 0x1c
call fcn.0043e996
pop ecx
test eax, eax
je 0x422b5a
and dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
jmp 0x422b5c
xor eax, eax
mov dword [edi + 0xc], eax
mov ecx, dword [edi + 0xc]
push 0x49408c
call fcn.00404d30
lea eax, [esp + 0x3c]
push eax
call fcn.00419edd
pop ecx
and dword [esp + 0x68], 0
push eax
mov esi, edi
call fcn.00422857
or dword [esp + 0x68], 0xffffffff
xor esi, esi
push esi
push ebx
lea ecx, [esp + 0x44]
call fcn.004049a6
or dword [edi + 0x50], 0x80
mov dword [edi + 0x24], esi
test byte [0x4b5fe8], bl
jne 0x422bb4
or dword [0x4b5fe8], ebx
mov dword [0x4b5f1c], esi
test byte [0x4b5fe8], 2
jne 0x422bdb
or dword [0x4b5fe8], 2
push 0x47fdb8
mov dword [0x4b5fe0], esi
mov dword [0x4b5fe4], esi
call fcn.0043ee89
pop ecx
mov eax, dword [0x4b5f1c]
cmp eax, esi
je 0x422c02
cmp dword [0x4b1a50], 0xffffffff
je 0x422c02
cmp dword [0x4b1a54], 0xffffffff
je 0x422c02
cmp dword [0x4b5eac], esi
jne 0x422cb0
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], 0x4b5fe0
mov byte [esp + 0x24], 0
call fcn.004062f9
mov dword [esp + 0x68], ebx
mov eax, dword [0x4b5f1c]
cmp eax, esi
jne 0x422c36
call fcn.00433605
mov eax, 0x4b5eb0
mov ecx, 0x4b5f1c
xchg dword [ecx], eax
cmp dword [0x4b1a50], 0xffffffff
je 0x422c48
cmp dword [0x4b1a54], 0xffffffff
jne 0x422c75
lea ebx, [esp + 0x14]
lea edi, [esp + 0x10]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
call fcn.00432b0b
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x38]
mov dword [0x4b1a50], eax
mov eax, dword [esp + 0x14]
mov dword [0x4b1a54], eax
xor esi, esi
cmp dword [0x4b5eac], esi
jne 0x422c9b
lea eax, [esp + 0x34]
push eax
call fcn.00433534
mov eax, dword [esp + 0x34]
dec eax
neg eax
sbb eax, eax
and eax, 0xffffffe0
add eax, 0x40
mov dword [0x4b5eac], eax
or dword [esp + 0x68], 0xffffffff
cmp byte [esp + 0x24], 0
je 0x422cb0
mov ecx, dword [esp + 0x20]
call fcn.004052c2
mov ebx, dword [0x4b5f1c]
or dword [edi + 0x50], 8
cmp dword [edi + 0xc], 0x4a8000
jne 0x422ce3
push 0x1c
call fcn.0043e996
pop ecx
cmp eax, esi
je 0x422cde
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], esi
mov byte [eax], 0
jmp 0x422ce0
xor eax, eax
mov dword [edi + 0xc], eax
mov ecx, dword [edi + 0xc]
push 0x20
push ebx
call fcn.004047a2
mov eax, dword [0x4b1a50]
or dword [edi + 0x50], 0x100
mov dword [edi + 0x28], eax
mov eax, dword [0x4b1a54]
or dword [edi + 0x50], 0x200
mov dword [edi + 0x2c], eax
mov eax, dword [0x4b5eac]
or dword [edi + 0x50], 0x800
lea ecx, [esp + 0x28]
mov dword [edi + 0x38], eax
mov dword [esp + 0x28], 0x4b5d2c
mov byte [esp + 0x2c], 0
call fcn.004062f9
mov ebx, dword [esp + 0x30]
push 2
pop esi
mov dword [esp + 0x68], esi
push dword [0x4b5b9c]
push dword [ebx + 0xb8]
push 0x4940a0
push 3
pop edx
call fcn.0040b07c
mov eax, dword [0x4b5b9c]
add esp, 0xc
cmp eax, dword [ebx + 0xb8]
jle 0x422dae
mov ecx, dword [0x4b5ba0]
or dword [edi + 0x50], 0x10
mov dword [edi + 0x10], ecx
mov ecx, dword [0x4b5ba4]
mov dword [edi + 0x14], ecx
mov ecx, dword [0x4b5b98]
or dword [edi + 0x50], 0x400
mov dword [edi + 0x30], ecx
mov ecx, dword [0x4b5b94]
or dword [edi + 0x50], 0x40
mov dword [edi + 0x1c], ecx
mov ecx, dword [0x4b5ba8]
or dword [edi + 0x50], 0x8000
mov dword [edi + 0x48], ecx
mov dword [ebx + 0xb8], eax
or dword [esp + 0x68], 0xffffffff
cmp byte [esp + 0x2c], 0
je 0x422dc3
mov ecx, dword [esp + 0x28]
call fcn.004052c2
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0x4b5d34
mov byte [esp + 0x1c], 0
call fcn.004062f9
push 3
pop edx
mov dword [esp + 0x68], edx
push dword [0x4b5b90]
push dword [ebx + 0xb4]
push 0x4940f0
push 2
pop esi
call fcn.0040b07c
mov eax, dword [0x4b5b90]
add esp, 0xc
cmp eax, dword [ebx + 0xb4]
jle 0x422eb0
cmp byte [0x4b5972], 0
je 0x422e77
push dword [0x4b5d24]
push dword [0x4b5d20]
push dword [0x4b5d18]
push dword [0x4b5d14]
push 0x494148
push 3
pop edx
call fcn.0040b07c
add esp, 0x14
push dword [0x4b5d14]
mov esi, edi
push dword [0x4b5d10]
call fcn.004228bc
mov eax, dword [0x4b5d18]
or dword [edi + 0x50], 0x2000
mov dword [edi + 0x3c], eax
mov ecx, dword [0x4b5d24]
mov eax, dword [0x4b5d20]
or dword [edi + 0x50], 0x4000
mov dword [edi + 0x44], ecx
jmp 0x422ea2
push 0x4941c8
push 3
pop edx
call fcn.0040b07c
pop ecx
mov ecx, edi
call fcn.0042289b
and dword [edi + 0x50], 0xffffdfff
xor eax, eax
mov dword [edi + 0x3c], eax
and dword [edi + 0x50], 0xffffbfff
mov dword [edi + 0x44], eax
mov dword [edi + 0x40], eax
mov eax, dword [0x4b5b90]
mov dword [ebx + 0xb4], eax
or dword [esp + 0x68], 0xffffffff
cmp byte [esp + 0x1c], 0
je 0x422ec5
mov ecx, dword [esp + 0x18]
call fcn.004052c2
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0043e1a7
mov esp, ebp
pop ebp
ret 4