Function at 0x4b5290
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x567366
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x5dd024]
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 [0x5e1568]
cmp eax, 0xffffffff
jne 0x4b5347
lea eax, [ebp - 0x220]
mov dword [0x5e1568], 0
push eax
lea edx, [ebp - 0x21c]
mov ecx, 0x59ad6c
call fcn.004cff20
add esp, 4
test al, al
je 0x4b5303
cmp dword [ebp - 0x21c], 5
ja 0x4b5336
je 0x4b5336
mov eax, dword [0x5e1568]
cmp eax, 1
je 0x4b534a
lea eax, [ebp - 0x220]
mov ecx, str.Shell32.dll
push eax
lea edx, [ebp - 0x21c]
call fcn.004cff20
add esp, 4
test al, al
je 0x4b5342
cmp dword [ebp - 0x21c], 5
ja 0x4b5336
jne 0x4b5342
mov eax, 1
mov dword [0x5e1568], eax
jmp 0x4b5347
mov eax, dword [0x5e1568]
cmp eax, 1
sete al
test al, al
jne 0x4b5539
mov esi, dword [edi]
mov ecx, str.ProgramFilesFolder
mov eax, esi
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4b5386
test dx, dx
je 0x4b5382
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4b5386
add eax, 4
add ecx, 4
test dx, dx
jne 0x4b5360
xor eax, eax
jmp 0x4b538b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4b5473
mov ecx, dword [esi - 0x10]
test ecx, ecx
je 0x4b53a5
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x4b53bb
call fcn.004092f0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x4b5557
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 0x4b53ed
movzx eax, ax
push eax
call fcn.00415370
jmp 0x4b53f7
push str.ProgramFiles
call fcn.004942e0
mov dword [ebp - 4], 1
lea edx, [ebp - 0x21c]
mov ecx, edi
call fcn.0040d000
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 0x4b5432
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
jne 0x4b5473
mov eax, dword [edi]
mov ecx, str.AppDataFolder
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4b5466
test dx, dx
je 0x4b5462
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4b5466
add eax, 4
add ecx, 4
test dx, dx
jne 0x4b5440
xor eax, eax
jmp 0x4b546b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4b5539
mov eax, dword [edi]
mov ecx, str.AppDataFolder
nop word [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4b54a6
test dx, dx
je 0x4b54a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4b54a6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4b5480
xor ecx, ecx
jmp 0x4b54ab
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 0x4b54ea
mov eax, 0x5c
mov word [ebp + esi*2 - 0x218], ax
inc esi
lea eax, [esi + esi]
cmp eax, 0x208
jae 0x4b5561
xor ecx, ecx
mov word [ebp + eax - 0x218], cx
cmp word [ebp - 0x218], cx
je 0x4b5532
lea edx, [ebp - 0x218]
lea edi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4b5510
mov ecx, dword [ebp - 0x224]
lea eax, [ebp - 0x218]
sub edx, edi
sar edx, 1
push edx
push eax
call fcn.00408e70
test esi, esi
setne al
jmp 0x4b553b
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.005255bb
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00408fc0
call fcn.00525ba9
int3