Function at 0x47ad90
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x5fa8a0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
xor esi, esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x28], esi
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov ecx, 1
mov byte [esp + 0x28], cl
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x402
or eax, ecx
jge 0x47adff
mov ecx, 0x402
lea eax, [esp + 0x14]
call fcn.00403540
cmp edi, esi
jne 0x47ae07
xor eax, eax
jmp 0x47ae1f
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x47ae10
sub eax, edx
sar eax, 1
mov ebx, eax
push edi
lea eax, [esp + 0x18]
call fcn.004037a0
push 0x41
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
lea eax, [esp + 0x1c]
push eax
call fcn.0040aee0
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
push 0x20019
push 0
push esi
push reloc.WS2_32.dll_closesocket
mov dword [esp + 0x30], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47aec0
mov eax, dword [esi - 8]
mov ebx, dword [esp + 0x1c]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x402
or eax, ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], 0x400
jge 0x47ae9a
mov ecx, 0x402
lea eax, [esp + 0x14]
call fcn.00403540
mov esi, dword [esp + 0x14]
push str.AppData
lea ecx, [esp + 0x1c]
push ecx
lea edi, [esp + 0x24]
call fcn.004172c0
mov edi, eax
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
jne 0x47af0f
test esi, esi
jne 0x47aef7
xor eax, eax
jmp 0x47af17
lea eax, [esi - 0x10]
mov byte [esp + 0x28], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47aee1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47af00
sub eax, edx
sar eax, 1
test eax, eax
jl 0x47b05e
cmp eax, dword [esi - 8]
jg 0x47b05e
mov dword [esi - 0xc], eax
mov word [esi + eax*2], 0
mov eax, esi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47af30
sub eax, edx
sar eax, 1
js 0x47b05e
cmp eax, dword [esi - 8]
jg 0x47b05e
test ebx, ebx
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
je 0x47af6a
push ebx
call ebp
xor ebx, ebx
mov dword [esp + 0x18], ebx
jmp 0x47af6e
mov ebx, dword [esp + 0x18]
test edi, edi
je 0x47afa3
lea eax, [esi - 0x10]
mov byte [esp + 0x28], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47af93
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
je 0x47aee1
push ebx
call ebp
jmp 0x47aee1
mov edi, dword [esp + 0x30]
mov eax, dword [edi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x402
or eax, ecx
jge 0x47afcc
mov ecx, 0x402
mov eax, edi
call fcn.00403540
mov eax, dword [edi]
push 0x400
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edx, dword [edi]
test edx, edx
jne 0x47afe5
xor ecx, ecx
jmp 0x47b009
mov ecx, edx
lea ebx, [ecx + 2]
lea ebx, [ebx]
mov di, word [ecx]
add ecx, 2
test di, di
jne 0x47aff0
sub ecx, ebx
sar ecx, 1
js 0x47b05e
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0x18]
cmp ecx, dword [edx - 8]
jg 0x47b05e
mov dword [edx - 0xc], ecx
mov edx, dword [edi]
mov word [edx + ecx*2], 0
xor ecx, ecx
cmp ecx, eax
sbb edi, edi
lea eax, [esi - 0x10]
mov byte [esp + 0x28], cl
neg edi
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47b041
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
je 0x47b048
push ebx
call ebp
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
push 0x80070057
call fcn.00403650
int3