Function at 0x47fe70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e66d8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x64a000]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0xc], 0x4ed20c
mov dword [esp + 0x38], 0
call fcn.004815c0
cmp dword [0x64ea28], 0
je 0x47ff6f
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0
push ecx
push 8
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x47ff6f
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push 0
push dword [esp + 0x18]
call dword [0x64ea28]
test eax, eax
jne 0x47ff65
mov eax, dword [esp + 0x14]
test eax, eax
je 0x47ff65
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c04b2
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push eax
push esi
push dword [esp + 0x18]
call dword [0x64ea28]
test eax, eax
je 0x47ff5c
push 0xffffffffffffffff
lea eax, [esp + 0x24]
push esi
push eax
call fcn.00407d20
mov edx, dword [esp + 0x18]
add esp, 0xc
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
lea ecx, [esp + 0x20]
mov dword [eax], edx
call fcn.00467a00
push esi
call fcn.0046d2f0
add esp, 4
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xc]
or edi, 0xffffffff
cmp dword [eax + 4], 0
je 0x47ff91
lea eax, [esp + 0xc]
push eax
call fcn.004358f0
add esp, 4
test al, al
jne 0x48029f
lea eax, [esp + 0x10]
push str.USERPROFILE
push eax
call fcn.00410550
push eax
lea eax, [esp + 0x20]
mov byte [esp + 0x44], 1
push eax
call fcn.00411580
mov edx, dword [esp + 0x1c]
add esp, 0x10
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
mov dword [eax], edx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
test ecx, ecx
je 0x47ffdf
cmp ecx, 0xffffffff
je 0x47ffec
mov ecx, edi
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x47ffec
mov eax, dword [esp + 0x14]
push 4
push 2
push eax
call fcn.00413640
add esp, 0xc
mov eax, dword [esp + 0x10]
mov byte [esp + 0x38], 0
mov ecx, dword [eax]
test ecx, ecx
je 0x480011
cmp ecx, 0xffffffff
je 0x48001e
mov ecx, edi
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x48001e
mov eax, dword [esp + 0x10]
push 4
push 1
push eax
call fcn.00413640
add esp, 0xc
mov eax, dword [esp + 0xc]
cmp dword [eax + 4], 0
je 0x48003d
lea eax, [esp + 0xc]
push eax
call fcn.004358f0
add esp, 4
test al, al
jne 0x48029f
lea eax, [esp + 0x20]
push str.HOMEPATH
push eax
call fcn.00410550
push eax
lea eax, [esp + 0x28]
mov byte [esp + 0x44], 2
push eax
call fcn.00411580
mov esi, eax
lea eax, [esp + 0x28]
mov byte [esp + 0x48], 3
push str.HOMEDRIVE
push eax
call fcn.00410550
push eax
lea eax, [esp + 0x2c]
mov byte [esp + 0x54], 4
push eax
call fcn.00411580
add esp, 0x20
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0x14]
mov byte [esp + 0x38], 5
push eax
mov dword [esp + 0x30], esi
call fcn.0042e000
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x4800cc
cmp ecx, 0xffffffff
je 0x4800d9
mov ecx, edi
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x4800d9
mov eax, dword [esp + 0x14]
push 4
push 2
push eax
call fcn.00413640
add esp, 0xc
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
test ecx, ecx
je 0x4800f9
cmp ecx, 0xffffffff
je 0x480106
mov ecx, edi
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x480106
mov eax, dword [esp + 0x10]
push 4
push 2
push eax
call fcn.00413640
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
test ecx, ecx
je 0x480126
cmp ecx, 0xffffffff
je 0x480133
mov ecx, edi
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x480133
mov eax, dword [esp + 0x18]
push 4
push 1
push eax
call fcn.00413640
add esp, 0xc
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
test ecx, ecx
je 0x480153
cmp ecx, 0xffffffff
je 0x480160
mov ecx, edi
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x480160
mov eax, dword [esp + 0x1c]
push 4
push 2
push eax
call fcn.00413640
add esp, 0xc
mov eax, dword [esp + 0x20]
mov byte [esp + 0x38], 0
mov ecx, dword [eax]
test ecx, ecx
je 0x480185
cmp ecx, 0xffffffff
je 0x480192
mov ecx, edi
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x480192
mov eax, dword [esp + 0x20]
push 4
push 1
push eax
call fcn.00413640
add esp, 0xc
mov eax, dword [esp + 0xc]
cmp dword [eax + 4], 0
je 0x4801b1
lea eax, [esp + 0xc]
push eax
call fcn.004358f0
add esp, 4
test al, al
jne 0x48029f
lea eax, [esp + 0x1c]
push str.HOME
push eax
call fcn.00410550
push eax
lea eax, [esp + 0x2c]
mov byte [esp + 0x44], 6
push eax
call fcn.00411580
mov edx, dword [esp + 0x1c]
add esp, 0x10
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
mov dword [eax], edx
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x4801ff
cmp ecx, 0xffffffff
je 0x48020c
mov ecx, edi
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x48020c
mov eax, dword [esp + 0x20]
push 4
push 2
push eax
call fcn.00413640
add esp, 0xc
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x38], 0
mov ecx, dword [eax]
test ecx, ecx
je 0x480231
cmp ecx, 0xffffffff
je 0x48023e
mov ecx, edi
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x48023e
mov eax, dword [esp + 0x1c]
push 4
push 1
push eax
call fcn.00413640
add esp, 0xc
mov eax, dword [esp + 0xc]
cmp dword [eax + 4], 0
je 0x480259
lea eax, [esp + 0xc]
push eax
call fcn.004358f0
add esp, 4
test al, al
jne 0x48029f
lea eax, [esp + 0x20]
push eax
call fcn.00481a00
mov edx, dword [esp + 0x10]
add esp, 4
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
mov dword [eax], edx
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x480292
cmp ecx, 0xffffffff
je 0x48029f
mov ecx, edi
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x48029f
mov eax, dword [esp + 0x20]
push 4
push 2
push eax
call fcn.00413640
add esp, 0xc
mov esi, dword [esp + 0x40]
lea eax, [esp + 0xc]
push eax
push esi
call fcn.004645f0
mov eax, dword [esp + 0x14]
add esp, 8
mov ecx, dword [eax]
test ecx, ecx
je 0x4802d0
cmp ecx, 0xffffffff
je 0x4802dd
lock xadd dword [eax], edi
dec edi
setne al
test al, al
jne 0x4802dd
mov eax, dword [esp + 0xc]
push 4
push 2
push eax
call fcn.00413640
add esp, 0xc
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret