Function at 0x5422f0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x595889
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], edi
xor ebx, ebx
lea esi, [edi + 0x10]
mov dword [edi], 0x5b131c
mov dword [esp + 0x1c], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
lea ecx, [eax*4]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x30]
push 0x18
mov byte [esp + 0x20], 1
mov dword [edi + 0x34], edx
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], ecx
call fcn.00479702
mov ebp, eax
add esp, 4
mov dword [esp + 0x28], ebp
cmp ebp, ebx
mov byte [esp + 0x1c], 2
je 0x54239f
mov eax, dword [esp + 0x24]
lea edx, [eax*4]
push edx
mov dword [ebp], 0x5b1314
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
mov dword [ebp + 0x10], eax
call fcn.0047a448
add esp, 4
mov dword [ebp + 0x14], eax
jmp 0x5423a1
xor ebp, ebp
push 0x18
mov byte [esp + 0x20], 1
mov dword [edi + 0x2c], ebp
call fcn.00479702
mov ebp, eax
add esp, 4
mov dword [esp + 0x28], ebp
cmp ebp, ebx
mov byte [esp + 0x1c], 3
je 0x5423ea
mov eax, dword [esp + 0x24]
mov dword [ebp + 0x10], eax
shl eax, 2
push eax
mov dword [ebp], 0x5b1314
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
call fcn.0047a448
add esp, 4
mov dword [ebp + 0x14], eax
jmp 0x5423ec
xor ebp, ebp
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, esi
mov byte [esp + 0x20], 1
mov dword [edi + 0x30], ebp
call fcn.005421f0
mov eax, dword [esi + 0x10]
cmp eax, ebx
jne 0x54240b
xor eax, eax
jmp 0x542438
mov ecx, dword [esi + 0xc]
cmp ecx, ebx
mov edx, dword [eax + 0x18]
mov dword [esi + 0x10], edx
mov dword [esi + 0xc], eax
je 0x54241e
mov dword [ecx + 0x1c], eax
mov edx, dword [esi + 0xc]
mov dword [edx + 0x18], ecx
mov ecx, dword [esi + 0xc]
mov dword [ecx + 0x1c], ebx
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 0x18]
inc edx
dec ecx
mov dword [esi + 0x14], edx
mov dword [esi + 0x18], ecx
mov dword [edi + 4], eax
mov byte [eax + 0x4c], bl
mov dword [eax + 0x44], ebx
mov dword [eax + 0x20], ebx
mov dword [eax + 0x28], ebx
mov dword [eax + 0x2c], ebx
mov dword [eax + 0x38], ebx
mov dword [eax + 0x30], ebx
mov dword [eax + 0x34], ebx
mov dword [eax + 0x48], edi
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], 0x4ac80000
mov dword [eax + 0x14], 0x561c4000
mov eax, dword [edi + 4]
or dword [eax + 0x38], 0xb
mov eax, dword [esi + 0x10]
cmp eax, ebx
jne 0x54247f
xor eax, eax
jmp 0x5424ac
mov ecx, dword [esi + 0xc]
cmp ecx, ebx
mov edx, dword [eax + 0x18]
mov dword [esi + 0x10], edx
mov dword [esi + 0xc], eax
je 0x542492
mov dword [ecx + 0x1c], eax
mov edx, dword [esi + 0xc]
mov dword [edx + 0x18], ecx
mov ecx, dword [esi + 0xc]
mov dword [ecx + 0x1c], ebx
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 0x18]
inc edx
dec ecx
mov dword [esi + 0x14], edx
mov dword [esi + 0x18], ecx
mov dword [edi + 8], eax
mov byte [eax + 0x4c], bl
mov dword [eax + 0x44], ebx
mov dword [eax + 0x20], ebx
mov dword [eax + 0x28], ebx
mov dword [eax + 0x2c], ebx
mov dword [eax + 0x38], ebx
mov dword [eax + 0x30], ebx
mov dword [eax + 0x34], ebx
mov dword [eax + 0x48], edi
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], 0x49c80000
mov dword [eax + 0x14], 0x541c4000
mov eax, dword [edi + 8]
or dword [eax + 0x38], 0xd
mov ecx, dword [esp + 0x14]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x10