Function at 0x487730
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5a4100
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x61e69c]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x61e69c]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
mov eax, dword [0x6285c4]
mov edx, dword [eax + 0xc]
mov ebp, dword [esp + 0x8c]
mov ecx, 0x6285c4
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x88]
push eax
push 0x5d7fe4
lea edi, [esp + 0x24]
mov dword [esp + 0x84], 0
call fcn.00407710
mov edx, dword [0x6285c4]
mov eax, dword [edx + 0xc]
add esp, 8
mov ecx, 0x6285c4
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x7c], 1
mov esi, dword [esp + 0x1c]
push esi
push str.shell:pm_set_install_location__s
lea edi, [esp + 0x20]
call fcn.00407710
mov edx, dword [0x6285c4]
mov eax, dword [edx + 0xc]
add esp, 8
mov ecx, 0x6285c4
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
push esi
push str.shell:pm_setInstallLocation__s
lea edi, [esp + 0x28]
mov byte [esp + 0x84], 2
call fcn.00407710
add esp, 8
lea ecx, [esp + 0x24]
push ecx
call fcn.0048dda0
lea ebx, [esp + 0x18]
lea edi, [esp + 0x24]
mov byte [esp + 0x7c], 3
call fcn.0042d130
lea ebx, [esp + 0x20]
call fcn.0042d130
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov eax, edx
sub eax, ecx
xor ebx, ebx
sar eax, 2
xor edi, edi
cmp eax, ebx
jle 0x48793b
cmp edi, eax
jb 0x487853
call fcn.004f825e
mov ecx, dword [esp + 0x30]
mov ecx, dword [ecx + edi*4]
push ecx
lea esi, [esp + 0x54]
call fcn.00490170
mov byte [esp + 0x7c], 4
mov edx, dword [0x6285c4]
mov eax, dword [edx + 0xc]
mov ecx, 0x6285c4
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call eax
add eax, 0x10
mov dword [esp + 0x44], eax
push ebp
push 1
push 0x2710
push 2
lea ecx, [esp + 0x4c]
push ecx
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x7c], esp
push 0xffffffffffffffff
mov byte [esp + 0xb0], 5
push ebx
lea edx, [esp + 0x88]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push edx
xor esi, esi
mov byte [ecx + 4], bl
call fcn.00409ca0
mov edx, dword [esp + 0xb4]
mov ecx, esi
call fcn.004800a0
mov byte [esp + 0x7c], 4
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4878f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x7c], 3
cmp dword [esp + 0x68], 0x10
jb 0x48790f
mov ecx, dword [esp + 0x54]
push ecx
call fcn.004f6734
add esp, 4
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov eax, edx
sub eax, ecx
inc edi
sar eax, 2
cmp edi, eax
mov dword [esp + 0x68], 0xf
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
jl 0x487848
mov esi, dword [esp + 0x1c]
mov byte [esp + 0x7c], 2
cmp ecx, ebx
je 0x487982
mov ebp, edx
mov edi, ecx
cmp ecx, edx
je 0x487979
lea esp, [esp]
mov eax, dword [edi]
sub eax, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x48796e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 4
cmp edi, ebp
jne 0x487950
mov ecx, dword [esp + 0x30]
push ecx
call fcn.004f6734
add esp, 4
mov ecx, dword [esp + 0x24]
push ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call fcn.004f6734
mov byte [esp + 0x80], 1
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4879c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x7c], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4879e7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x7c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x487a0b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.004f673f
add esp, 0x6c
ret 0xc