Function at 0x428833
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
xor eax, eax
push ebx
push esi
mov esi, edx
mov dword [esp + 0x20], eax
push edi
mov dword [esp + 0x14], eax
mov ebx, eax
mov dword [esp + 0x1c], eax
mov edi, dword [esi + 0x1c]
lea edx, [esi + 8]
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x34], esi
call fcn.0041fa76
test eax, eax
js 0x428aaf
test byte [esi + 0x20], 2
mov esi, dword [esp + 0xc]
je 0x4288c4
lea eax, [esp + 0x28]
mov edx, 0x408aac
push eax
lea eax, [esp + 0x24]
mov ecx, esi
push eax
push 3
push 0x4069f8
call fcn.00423dc7
test eax, eax
js 0x4288c4
mov eax, dword [edi + 4]
cmp eax, dword [esp + 0x28]
jne 0x4288c4
push eax
push dword [esp + 0x24]
push edi
call dword [sym.imp.ntdll.dll_RtlCompareMemory]
cmp eax, dword [edi + 4]
je 0x4288e4
push dword [edi + 4]
mov edx, edi
mov ecx, esi
call fcn.00422f0c
mov dword [esp + 0x10], eax
test eax, eax
js 0x428a8c
mov eax, dword [esp + 0x30]
or dword [eax + 0x20], 2
mov eax, dword [edi + 0x10]
add eax, edi
mov ecx, eax
mov dword [esp + 0x2c], eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x24]
jne 0x4288f2
sub ecx, edx
mov edx, 0x12000004
sar ecx, 1
lea eax, [ecx*2 + 2]
mov ecx, esi
mov dword [esp + 0x10], eax
lea eax, [esp + 0x18]
push eax
xor eax, eax
push eax
push eax
call fcn.0042024d
cmp eax, 0xc0000023
jne 0x428961
push dword [esp + 0x18]
mov eax, dword fs:[0x30]
xor esi, esi
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
test ebx, ebx
je 0x428a83
lea eax, [esp + 0x18]
mov edx, 0x12000004
push eax
push ebx
push esi
mov esi, dword [esp + 0x18]
mov ecx, esi
call fcn.0042024d
test eax, eax
js 0x428985
test ebx, ebx
je 0x428985
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x18], eax
jne 0x428985
push eax
push ebx
push dword [esp + 0x34]
call dword [sym.imp.ntdll.dll_RtlCompareMemory]
cmp eax, dword [esp + 0x10]
je 0x4289aa
push 1
mov edx, 0x12000004
mov ecx, esi
call fcn.0042065e
push dword [esp + 0x10]
xor eax, eax
mov edx, 0x12000004
push dword [esp + 0x30]
mov ecx, esi
push eax
call fcn.00420448
mov eax, dword [edi + 0x14]
cmp dword [eax + edi + 8], 4
jne 0x428a3f
add edi, eax
lea edx, [esp + 0x14]
lea eax, [esp + 0x24]
push eax
lea ecx, [edi + 0xc]
call fcn.00429aa1
test eax, eax
js 0x428a06
push 1
mov edx, 0x11000001
mov ecx, esi
call fcn.0042065e
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x24]
push eax
lea edx, [esp + 0x18]
call fcn.00429d4b
push dword [esp + 0x24]
xor eax, eax
mov edx, 0x11000001
push dword [esp + 0x18]
mov ecx, esi
push eax
call fcn.00420448
lea eax, [esp + 0x34]
push eax
lea edx, [esp + 0x20]
lea ecx, [edi + 0xc]
call fcn.00429c07
test eax, eax
js 0x428a3f
mov edi, 0x12000002
mov ecx, esi
push 1
mov edx, edi
call fcn.0042065e
push dword [esp + 0x34]
xor eax, eax
mov edx, edi
push dword [esp + 0x20]
mov ecx, esi
push eax
call fcn.00420448
xor eax, eax
mov edi, eax
cmp dword [esp + 0x14], eax
je 0x428a63
push dword [esp + 0x14]
push eax
mov eax, dword fs:[0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov esi, dword [esp + 0xc]
xor eax, eax
cmp dword [esp + 0x1c], edi
je 0x428a90
push dword [esp + 0x1c]
push eax
mov eax, dword fs:[0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov esi, dword [esp + 0xc]
jmp 0x428a90
mov esi, dword [esp + 0xc]
jmp 0x428985
mov edi, dword [esp + 0x10]
cmp dword [esp + 0x20], 0
je 0x428ab5
push dword [esp + 0x20]
xor eax, eax
push eax
mov eax, dword fs:[0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x428ab1
mov edi, eax
mov esi, dword [esp + 0xc]
test esi, esi
je 0x428ac0
mov ecx, esi
call fcn.0041fd66
test ebx, ebx
je 0x428ad7
push ebx
xor eax, eax
push eax
mov eax, dword fs:[0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret