Function at 0x43e9d0
Capabilities:
Access peb ldr_data
Check if file exists
Get session user name
Query environment variable
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x47a444
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x13c
mov eax, dword [0x4994a0]
xor eax, dword [esp + 0x148]
push ebx
push ebp
push esi
push edi
xor edi, edi
mov ebp, 0x104
mov dword [esp + 0x148], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], edi
mov dword [esp + 0x18], ebp
call fcn.0046b487
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x28], eax
mov dword [esp + 0x154], edi
call fcn.0046b487
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x2c], eax
mov byte [esp + 0x154], 1
call fcn.0046b487
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x154], 2
call fcn.0046b487
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x30], eax
mov byte [esp + 0x154], 3
call fcn.0046b487
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x44]
mov bl, 4
push ecx
mov byte [esp + 0x15c], bl
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x40]
mov byte [esp + edx + 0x40], 0
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x43eac0
sub eax, ecx
push eax
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x30]
call fcn.00402770
lea ecx, [esp + 0x38]
push ecx
push 0xf003f
push edi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionProfileList
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x43ee81
push ebp
lea edx, [esp + 0x44]
push edx
push str.SystemDrive
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jbe 0x43ee81
lea eax, [esp + 0x40]
lea edx, [eax + 1]
jmp 0x43eb20
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43eb20
sub eax, edx
push eax
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x38]
call fcn.00402770
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x3c]
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push str.AllUsersProfile
push ecx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x4c], 1
call edi
test eax, eax
jne 0x43ee8c
mov edx, dword [esp + 0x18]
mov byte [esp + edx + 0x40], al
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x30]
call fcn.00402c40
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x3c]
push eax
push 0
push str.DefaultUserProfile
push ecx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x4c], 1
call edi
test eax, eax
jne 0x43efa2
mov edx, dword [esp + 0x18]
mov byte [esp + edx + 0x40], al
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x24]
call fcn.00402c40
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x3c]
push eax
push 0
push str.ProfilesDirectory
push ecx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x4c], 1
call edi
test eax, eax
lea ecx, [esp + 0x10]
jne 0x43ef77
mov edx, dword [esp + 0x18]
mov byte [esp + edx + 0x40], al
lea eax, [esp + 0x40]
push eax
call fcn.00402c40
push 0xd
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
call fcn.00408600
push str._SystemDrive_
push eax
call fcn.00407d70
add esp, 8
lea ecx, [esp + 0x14]
mov byte [esp + 0x27], al
call fcn.00413d20
mov al, byte [esp + 0x27]
test al, al
je 0x43ec8b
push 0xd
push 0
lea ecx, [esp + 0x18]
call fcn.00423780
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00408720
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x158], 5
call fcn.00402990
lea ecx, [esp + 0x14]
mov byte [esp + 0x154], bl
call fcn.00413d20
push 0x482af8
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.00405860
lea ecx, [esp + 0x34]
push ecx
push eax
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x16c], 6
call fcn.00408720
mov eax, dword [eax]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
add esp, 0x18
push eax
call esi
lea ecx, [esp + 0x14]
mov edi, eax
call fcn.00413d20
lea ecx, [esp + 0x1c]
mov byte [esp + 0x154], bl
call fcn.00413d20
test edi, edi
je 0x43ed3a
push 0x482af8
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00405860
add esp, 8
mov edx, esp
mov dword [esp + 0x18], esp
lea ecx, [esp + 0x2c]
push ecx
push eax
push edx
mov byte [esp + 0x164], 7
call fcn.00408720
mov ebp, dword [esp + 0x4c]
add esp, 0xc
push SysReAllocString
mov ecx, ebp
call fcn.0043e420
lea ecx, [esp + 0x1c]
mov byte [esp + 0x154], bl
call fcn.00413d20
jmp 0x43ed3e
mov ebp, dword [esp + 0x3c]
push 0x482af8
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.00405860
lea ecx, [esp + 0x38]
push ecx
push eax
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0x16c], 8
call fcn.00408720
mov eax, dword [eax]
add esp, 0x18
push eax
call esi
lea ecx, [esp + 0x1c]
mov edi, eax
call fcn.00413d20
lea ecx, [esp + 0x14]
mov byte [esp + 0x154], bl
call fcn.00413d20
test edi, edi
je 0x43ede1
push 0x482af8
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00405860
add esp, 8
mov edx, esp
mov dword [esp + 0x18], esp
lea ecx, [esp + 0x30]
push ecx
push eax
push edx
mov byte [esp + 0x164], 9
call fcn.00408720
add esp, 0xc
push reloc.OLEAUT32.dll_SysReAllocString
mov ecx, ebp
call fcn.0043e420
lea ecx, [esp + 0x1c]
mov byte [esp + 0x154], bl
call fcn.00413d20
push 0x482af8
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.00405860
lea ecx, [esp + 0x2c]
push ecx
push eax
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0x16c], 0xa
call fcn.00408720
mov eax, dword [eax]
add esp, 0x18
push eax
call esi
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.00413d20
lea ecx, [esp + 0x14]
mov byte [esp + 0x154], bl
call fcn.00413d20
test esi, esi
je 0x43ee7d
push 0x482af8
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00405860
add esp, 8
mov edx, esp
mov dword [esp + 0x18], esp
lea ecx, [esp + 0x24]
push ecx
push eax
push edx
mov byte [esp + 0x164], 0xb
call fcn.00408720
add esp, 0xc
push SysStringLen
mov ecx, ebp
call fcn.0043e420
lea ecx, [esp + 0x1c]
call fcn.00413d20
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
mov byte [esp + 0x154], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43eeae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0x154], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43eed4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x154], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43eefa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x154], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43ef20
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov dword [esp + 0x154], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43ef49
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x14c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x148]
xor ecx, dword [esp + 0x158]
call fcn.00456aa7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x148
ret 4
call fcn.00413d20
lea ecx, [esp + 0x30]
call fcn.00413d20
lea ecx, [esp + 0x20]
call fcn.00413d20
lea ecx, [esp + 0x2c]
call fcn.00413d20
lea ecx, [esp + 0x28]
call fcn.00413d20
jmp 0x43ef49
lea eax, [esi - 0x10]
mov byte [esp + 0x154], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x43eea4