Function at 0x429220
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x4c8895
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x50d024]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [0x50f2c0]
cmp eax, 0xffffffff
jne 0x4292ca
lea eax, [ebp - 0x14]
mov dword [0x50f2c0], 0
push eax
lea edx, [ebp - 0x10]
mov ecx, 0x4f1078
call fcn.0047ef80
add esp, 4
test al, al
je 0x42928f
cmp dword [ebp - 0x10], 5
ja 0x4292b9
je 0x4292b9
mov eax, dword [0x50f2c0]
cmp eax, 1
je 0x4292cd
lea eax, [ebp - 0x14]
mov ecx, str.Shell32.dll
push eax
lea edx, [ebp - 0x10]
call fcn.0047ef80
add esp, 4
test al, al
je 0x4292c5
cmp dword [ebp - 0x10], 5
ja 0x4292b9
jne 0x4292c5
mov eax, 1
mov dword [0x50f2c0], eax
jmp 0x4292ca
mov eax, dword [0x50f2c0]
cmp eax, 1
sete al
test al, al
jne 0x429492
mov esi, dword [ebx]
mov ecx, str.ProgramFilesFolder
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x429307
test dx, dx
je 0x429303
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x429307
add eax, 4
add ecx, 4
test dx, dx
jne 0x4292e1
xor eax, eax
jmp 0x42930c
sbb eax, eax
or eax, 1
test eax, eax
je 0x4293e3
mov ecx, dword [esi - 0x10]
test ecx, ecx
je 0x429324
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x429330
call fcn.00408d40
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push eax
push str.ProgramFiles
lea ecx, [ebp - 0x10]
call fcn.004298e0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4294b7
mov ecx, dword [ebx]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x429378
test dx, dx
je 0x429374
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x429378
add ecx, 4
add eax, 4
test dx, dx
jne 0x429352
xor esi, esi
jmp 0x42937d
sbb esi, esi
or esi, 1
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42939f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x4293e3
mov eax, dword [ebx]
mov ecx, str.AppDataFolder
nop word [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4293d6
test dx, dx
je 0x4293d2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4293d6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4293b0
xor eax, eax
jmp 0x4293db
sbb eax, eax
or eax, 1
test eax, eax
jne 0x429492
mov eax, dword [ebx]
mov ecx, str.AppDataFolder
nop word [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x429416
test dx, dx
je 0x429412
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x429416
add eax, 4
add ecx, 4
test dx, dx
jne 0x4293f0
xor ecx, ecx
jmp 0x42941b
sbb ecx, ecx
or ecx, 1
xor eax, eax
mov edx, str.PROGRAMFILES
mov word [ebp], ax
test ecx, ecx
push 0x104
lea eax, [ebp]
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 0x429451
mov eax, 0x5c
mov word [ebp + esi*2], ax
inc esi
lea eax, [esi + esi]
cmp eax, 0x208
jae 0x4294c1
xor ecx, ecx
mov word [ebp + eax], cx
cmp word [ebp], cx
je 0x42948b
lea edx, [ebp]
lea edi, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x429470
sub edx, edi
lea eax, [ebp]
sar edx, 1
mov ecx, ebx
push edx
push eax
call fcn.00409430
test esi, esi
setne al
jmp 0x429494
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 + 0x208]
xor ecx, ebp
call fcn.00498bc4
lea esp, [ebp + 0x20c]
pop ebp
ret
push 0x80004005
call fcn.00409410
call fcn.004991c6
int3