Function at 0x4b6920
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55d0b1
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x5d0074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x224], edi
mov eax, dword [0x5d446c]
cmp eax, 0xffffffff
jne 0x4b69e7
lea eax, [ebp - 0x220]
mov dword [0x5d446c], 0
push eax
lea edx, [ebp - 0x21c]
mov ecx, str.Shlwapi.dll
call fcn.004d0c60
add esp, 4
test al, al
je 0x4b69a3
cmp dword [ebp - 0x21c], 5
ja 0x4b6997
jne 0x4b69a3
mov eax, 1
mov dword [0x5d446c], eax
jmp 0x4b69e7
mov eax, dword [0x5d446c]
cmp eax, 1
je 0x4b69ea
lea eax, [ebp - 0x220]
mov ecx, 0x58f1bc
push eax
lea edx, [ebp - 0x21c]
call fcn.004d0c60
add esp, 4
test al, al
je 0x4b69e2
cmp dword [ebp - 0x21c], 5
ja 0x4b6997
jne 0x4b69e2
mov eax, 1
mov dword [0x5d446c], eax
jmp 0x4b69e7
mov eax, dword [0x5d446c]
cmp eax, 1
sete al
test al, al
jne 0x4b6bd9
mov esi, dword [edi]
mov ecx, str.ProgramFilesFolder
mov eax, esi
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4b6a26
test dx, dx
je 0x4b6a22
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4b6a26
add eax, 4
add ecx, 4
test dx, dx
jne 0x4b6a00
xor eax, eax
jmp 0x4b6a2b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4b6b13
mov ecx, dword [esi - 0x10]
test ecx, ecx
je 0x4b6a45
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x4b6a5b
call fcn.00413cd0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x4b6bf7
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov dword [ebp - 4], 0
mov eax, str.ProgramFiles
lea ecx, [ebp - 0x21c]
test eax, 0xffff0000
jne 0x4b6a8d
movzx eax, ax
push eax
call fcn.00414050
jmp 0x4b6a97
push str.ProgramFiles
call fcn.00495610
mov dword [ebp - 4], 1
lea edx, [ebp - 0x21c]
mov ecx, edi
call fcn.0040b9a0
mov bl, al
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [ebp - 0x21c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4b6ad2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
jne 0x4b6b13
mov eax, dword [edi]
mov ecx, str.AppDataFolder
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4b6b06
test dx, dx
je 0x4b6b02
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4b6b06
add eax, 4
add ecx, 4
test dx, dx
jne 0x4b6ae0
xor eax, eax
jmp 0x4b6b0b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4b6bd9
mov eax, dword [edi]
mov ecx, str.AppDataFolder
nop word [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4b6b46
test dx, dx
je 0x4b6b42
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4b6b46
add eax, 4
add ecx, 4
test dx, dx
jne 0x4b6b20
xor ecx, ecx
jmp 0x4b6b4b
sbb ecx, ecx
or ecx, 1
xor eax, eax
mov edx, str.PROGRAMFILES
mov word [ebp - 0x218], ax
test ecx, ecx
push 0x104
lea eax, [ebp - 0x218]
push eax
mov eax, str.APPDATA
cmovne eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test esi, esi
je 0x4b6b8a
mov eax, 0x5c
mov word [ebp + esi*2 - 0x218], ax
inc esi
lea eax, [esi + esi]
cmp eax, 0x208
jae 0x4b6c01
xor ecx, ecx
mov word [ebp + eax - 0x218], cx
cmp word [ebp - 0x218], cx
je 0x4b6bd2
lea edx, [ebp - 0x218]
lea edi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4b6bb0
mov ecx, dword [ebp - 0x224]
lea eax, [ebp - 0x218]
sub edx, edi
sar edx, 1
push edx
push eax
call fcn.004143c0
test esi, esi
setne al
jmp 0x4b6bdb
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00520c02
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004143a0
call fcn.005212a0
int3