Function at 0x47b440
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8807
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x507254]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x78]
mov dword [ebp - 0x30], 0
push eax
call fcn.0047add0
add esp, 4
mov ecx, 0x507054
push eax
call fcn.00402f80
mov edx, dword [ebp - 0x64]
cmp edx, 8
jb 0x47b4c5
mov ecx, dword [ebp - 0x78]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47b4bb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47b8df
push edx
push ecx
call fcn.004a6287
add esp, 8
lea eax, [ebp - 0x2c]
push eax
call fcn.0047b0e0
add esp, 4
xor eax, eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x1c], eax
jne 0x47b506
xorps xmm0, xmm0
movups xmmword [ebp - 0x60], xmm0
mov dword [ebp - 0x60], eax
movq qword [ebp - 0x50], xmm0
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], 7
mov word [ebp - 0x60], ax
lea ecx, [ebp - 0x60]
mov eax, 1
jmp 0x47b55a
push 6
mov dword [ebp - 0x48], 0
lea ecx, [ebp - 0x48]
push str.WinSxS
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
call fcn.00403940
lea eax, [ebp - 0x48]
mov dword [ebp - 4], 2
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x30], 0x32
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.0040ef10
mov ecx, eax
add esp, 0xc
mov eax, 0x36
movups xmm0, xmmword [ecx]
xor edx, edx
or eax, 8
movups xmmword [ebp - 0x78], xmm0
movq xmm0, qword [ecx + 0x10]
movq qword [ebp - 0x68], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], dx
test al, 4
je 0x47b599
and eax, 0xfffffffb
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x30], eax
call fcn.00402710
mov eax, dword [ebp - 0x30]
test al, 2
je 0x47b5ae
and eax, 0xfffffffd
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x30], eax
call fcn.00402710
mov eax, dword [ebp - 0x30]
test al, 1
je 0x47b5ba
lea ecx, [ebp - 0x60]
call fcn.00402710
mov edx, dword [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x47b5fb
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47b5f1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47b8e4
push edx
push ecx
call fcn.004a6287
add esp, 8
lea eax, [ebp - 0x78]
mov ecx, 0x50709c
push eax
call fcn.00402f80
mov edx, dword [ebp - 0x64]
cmp edx, 8
jb 0x47b643
mov ecx, dword [ebp - 0x78]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47b639
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47b8e9
push edx
push ecx
call fcn.004a6287
add esp, 8
lea eax, [ebp - 0x78]
push eax
call fcn.0047b200
add esp, 4
mov ecx, 0x50706c
push eax
call fcn.00402f80
mov edx, dword [ebp - 0x64]
cmp edx, 8
jb 0x47b694
mov ecx, dword [ebp - 0x78]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47b68a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47b8ee
push edx
push ecx
call fcn.004a6287
add esp, 8
lea eax, [ebp - 0x78]
push eax
call fcn.0047b0e0
add esp, 4
mov ecx, 0x507084
push eax
call fcn.00402f80
mov edx, dword [ebp - 0x64]
cmp edx, 8
jb 0x47b6e5
mov ecx, dword [ebp - 0x78]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47b6db
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47b8f3
push edx
push ecx
call fcn.004a6287
add esp, 8
push 0
push 0
push str.ProgramFiles
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x47b79c
lea esi, [eax + 1]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a6639
mov edi, eax
add esp, 4
mov dword [ebp - 0x14], edi
push esi
push edi
push str.ProgramFiles
mov dword [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x47b786
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47b740
sub ecx, edx
mov dword [ebp - 0x48], 0
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 7
call fcn.00403940
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x47b7b4
push 2
push edi
call fcn.004a6287
add esp, 8
jmp 0x47b7b4
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x47b79c
push 2
push edi
call fcn.004a6287
add esp, 8
mov byte [ebp - 0x30], 0
lea eax, [ebp - 0x48]
push dword [ebp - 0x30]
push 0x4eb7ca
push eax
call fcn.004616b0
add esp, 0xc
lea eax, [ebp - 0x48]
mov ecx, 0x5070b4
push eax
call fcn.00402f80
mov edx, dword [ebp - 0x34]
cmp edx, 8
jb 0x47b7fc
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47b7f2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47b8f8
push edx
push ecx
call fcn.004a6287
add esp, 8
lea eax, [ebp - 0x60]
push eax
call fcn.0047a630
add esp, 4
mov ecx, 0x5070cc
push eax
call fcn.00402f80
mov edx, dword [ebp - 0x4c]
cmp edx, 8
jb 0x47b84d
mov ecx, dword [ebp - 0x60]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47b843
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47b8fd
push edx
push ecx
call fcn.004a6287
add esp, 8
xor eax, eax
mov dword [ebp - 0x50], 0
cmp dword [0x507080], 8
mov word [ebp - 0x60], ax
mov eax, 0x50706c
cmovae eax, dword [0x50706c]
push eax
mov dword [ebp - 0x4c], 7
mov byte [0x50a77c], 1
call fcn.004809c0
test al, al
mov byte [0x50a77e], 1
mov eax, 0x5070cc
mov byte [0x50a791], 1
sete byte [0x50a77d]
mov byte [0x50a77f], 1
cmp dword [0x5070e0], 8
cmovae eax, dword [0x5070cc]
push eax
call fcn.004809c0
add esp, 8
test al, al
sete byte [0x50a790]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a6256
mov esp, ebp
pop ebp
ret
call fcn.004ab23f
call fcn.004ab23f
call fcn.004ab23f
call fcn.004ab23f
call fcn.004ab23f
call fcn.004ab23f
call fcn.004ab23f
int3