Function at 0x47b7d0
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x4bbe47
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x4df5dc]
xor eax, esp
mov dword [esp + 0x254], eax
push ebx
push esi
push edi
mov eax, dword [0x4df5dc]
xor eax, esp
push eax
lea eax, [esp + 0x26c]
mov dword fs:[0], eax
mov esi, edx
cmp dword [ecx + 0x10], 0
mov eax, dword [esp + 0x27c]
mov dword [esp + 0x10], eax
jne 0x47b824
xor al, al
jmp 0x47bbce
xor eax, eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
mov dword [esp + 0x274], eax
cmp dword [ecx + 0x14], 8
jb 0x47b85c
mov eax, dword [ecx]
jmp 0x47b85e
mov eax, ecx
cmp word [eax], 0x40
jne 0x47b8f5
mov eax, dword [ecx + 0x10]
mov edx, ecx
dec eax
lea ecx, [esp + 0x2c]
push eax
call fcn.00406ee0
add esp, 4
mov edi, eax
mov byte [esp + 0x274], 1
lea eax, [esp + 0x14]
cmp eax, edi
je 0x47b8c1
cmp dword [esp + 0x28], 8
jb 0x47b8a0
push dword [esp + 0x14]
call fcn.0048e056
add esp, 4
xor eax, eax
mov dword [esp + 0x28], 7
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
call fcn.004056b0
mov byte [esp + 0x274], 0
cmp dword [esp + 0x40], 8
jb 0x47b8dc
push dword [esp + 0x2c]
call fcn.0048e056
add esp, 4
xor eax, eax
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
jmp 0x47b909
lea eax, [esp + 0x14]
cmp eax, ecx
je 0x47b909
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.00402030
xor eax, eax
push 0x206
push eax
mov word [esp + 0x64], ax
lea eax, [esp + 0x66]
push eax
call fcn.00492dc0
add esp, 0xc
lea ecx, [esp + 0x5c]
cmp dword [esp + 0x28], 8
lea eax, [esp + 0x14]
cmovae eax, dword [esp + 0x14]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebx, eax
cmp ebx, 0x104
jb 0x47b9b5
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00489b8f
add esp, 4
lea ecx, [esp + 0x14]
cmp dword [esp + 0x28], 8
mov edi, eax
cmovae ecx, dword [esp + 0x14]
push ebx
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp word [edi], 0
jne 0x47b988
xor ecx, ecx
jmp 0x47b99f
mov ecx, edi
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47b990
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [esp + 0x1c]
call fcn.004024f0
push edi
call fcn.0048e70c
add esp, 4
jmp 0x47b9ee
cmp word [esp + 0x5c], 0
jne 0x47b9c1
xor ecx, ecx
jmp 0x47b9df
lea ecx, [esp + 0x5c]
lea edx, [ecx + 2]
jmp 0x47b9d0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47b9d0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x1c]
call fcn.004024f0
push 2
xor eax, eax
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
lea ecx, [esp + 0x48]
push 0x4ca5b0
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], 0
mov word [esp + 0x4c], ax
call fcn.004024f0
mov byte [esp + 0x274], 2
lea eax, [esp + 0x44]
push dword [esp + 0x54]
cmp dword [esp + 0x5c], 8
lea ecx, [esp + 0x18]
push 0
cmovae eax, dword [esp + 0x4c]
push eax
call fcn.004075a0
mov ebx, eax
cmp ebx, 0xffffffff
je 0x47bb48
push ebx
lea edx, [esp + 0x18]
lea ecx, [esp + 0x30]
call fcn.00406e60
add esp, 4
mov edi, eax
mov byte [esp + 0x274], 3
cmp esi, edi
je 0x47baa0
cmp dword [esi + 0x14], 8
jb 0x47ba85
push dword [esi]
call fcn.0048e056
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
push edi
mov word [esi], ax
call fcn.004056b0
mov byte [esp + 0x274], 2
cmp dword [esp + 0x40], 8
jb 0x47babb
push dword [esp + 0x2c]
call fcn.0048e056
add esp, 4
mov esi, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
test esi, esi
je 0x47bb44
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x14]
sub eax, dword [esp + 0x54]
lea ecx, [esp + 0x2c]
sub eax, ebx
push eax
call fcn.00406ee0
add esp, 4
mov byte [esp + 0x274], 4
lea ecx, [esp + 0x2c]
cmp dword [esp + 0x40], 8
cmovae ecx, dword [esp + 0x2c]
call fcn.004068e0
mov dword [esi], eax
mov byte [esp + 0x274], 2
cmp dword [esp + 0x40], 8
jb 0x47bb2d
push dword [esp + 0x2c]
call fcn.0048e056
add esp, 4
xor eax, eax
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
mov bl, 1
jmp 0x47bb65
lea eax, [esp + 0x14]
cmp esi, eax
je 0x47bb5c
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00402030
mov esi, dword [esp + 0x10]
test esi, esi
sete bl
mov byte [esp + 0x274], 0
cmp dword [esp + 0x58], 8
jb 0x47bb80
push dword [esp + 0x44]
call fcn.0048e056
add esp, 4
xor eax, eax
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], 0
mov word [esp + 0x44], ax
mov dword [esp + 0x274], 0xffffffff
cmp dword [esp + 0x28], 8
jb 0x47bbb5
push dword [esp + 0x14]
call fcn.0048e056
add esp, 4
xor eax, eax
mov dword [esp + 0x28], 7
mov word [esp + 0x14], ax
mov al, bl
mov dword [esp + 0x24], 0
mov ecx, dword [esp + 0x26c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x254]
xor ecx, esp
call fcn.0048d894
add esp, 0x268
ret