Function at 0x4b95b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5659a4
mov eax, dword fs:[0]
push eax
sub esp, 0x2b0
mov eax, dword [0x5b38f0]
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 dword [ebp - 0x2b4], ecx
mov edi, dword [ebp + 8]
xor eax, eax
mov esi, dword [ebp + 0xc]
mov ecx, edi
mov dword [ebp - 4], 0
push 0xffffffffffffffff
mov dword [ebp - 0x2b8], 0
push eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
push esi
mov dword [ebp - 0x2bc], edi
mov word [edi], ax
call fcn.0040757d
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2a8]
mov edx, esi
mov dword [ebp - 0x2b8], 1
call fcn.004b9f30
xor ebx, ebx
mov dword [ebp - 4], 1
mov dword [ebp - 0x2ac], ebx
lea esp, [esp]
xor eax, eax
mov dword [ebp - 0x264], 7
push 0xffffffffffffffff
push eax
push edi
lea ecx, [ebp - 0x278]
mov dword [ebp - 0x268], 0
mov word [ebp - 0x278], ax
call fcn.0040757d
mov byte [ebp - 4], 2
xor ecx, ecx
mov eax, dword [ebx*4 + 0x58b950]
mov ebx, 7
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], cx
mov dword [ebp - 0x2b0], eax
cmp word [eax], cx
jne 0x4b96b4
xor esi, esi
jmp 0x4b96cf
mov esi, eax
lea ecx, [esi + 2]
lea esp, [esp]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4b96c0
sub esi, ecx
sar esi, 1
cmp esi, 0x7ffffffe
ja 0x4b9a5b
cmp esi, ebx
jbe 0x4b96f5
push 0
push esi
lea ecx, [ebp - 0x230]
call fcn.00407425
mov ebx, dword [ebp - 0x21c]
jmp 0x4b9708
test esi, esi
jne 0x4b970a
xor eax, eax
mov dword [ebp - 0x220], esi
mov word [ebp - 0x230], ax
test esi, esi
setne al
test al, al
je 0x4b975e
mov ecx, dword [ebp - 0x230]
lea edx, [ebp - 0x230]
cmp ebx, 8
cmovae edx, ecx
test esi, esi
je 0x4b9746
lea eax, [esi + esi]
push eax
push dword [ebp - 0x2b0]
push edx
call fcn.00527280
mov ebx, dword [ebp - 0x21c]
add esp, 0xc
mov ecx, dword [ebp - 0x230]
cmp ebx, 8
mov dword [ebp - 0x220], esi
lea eax, [ebp - 0x230]
cmovae eax, ecx
xor ecx, ecx
mov word [eax + esi*2], cx
lea edx, [ebp - 0x230]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x260]
call fcn.004b9f30
mov byte [ebp - 4], 5
cmp dword [ebp - 0x21c], 8
jb 0x4b978e
push dword [ebp - 0x230]
call fcn.0052558c
add esp, 4
push dword [ebp - 0x250]
xor eax, eax
mov dword [ebp - 0x21c], 7
cmp dword [ebp - 0x24c], 8
lea ecx, [ebp - 0x2a8]
mov word [ebp - 0x230], ax
lea eax, [ebp - 0x260]
cmovae eax, dword [ebp - 0x260]
push 0
push eax
mov dword [ebp - 0x220], 0
call fcn.0043b13f
mov ebx, dword [ebp - 0x2ac]
cmp eax, 0xffffffff
je 0x4b993d
mov eax, dword [ebx*4 + 0x58b950]
xor edx, edx
mov ecx, 7
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], ecx
mov word [ebp - 0x248], dx
mov dword [ebp - 0x2b0], eax
cmp word [eax], dx
jne 0x4b9816
xor esi, esi
jmp 0x4b982f
mov esi, eax
lea edx, [esi + 2]
jmp 0x4b9820
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4b9820
sub esi, edx
sar esi, 1
cmp esi, 0x7ffffffe
ja 0x4b9a5b
cmp esi, ecx
jbe 0x4b9855
push 0
push esi
lea ecx, [ebp - 0x248]
call fcn.00407425
mov ecx, dword [ebp - 0x234]
jmp 0x4b9868
test esi, esi
jne 0x4b986a
xor eax, eax
mov dword [ebp - 0x238], esi
mov word [ebp - 0x248], ax
test esi, esi
setne al
test al, al
je 0x4b98c4
mov edx, dword [ebp - 0x248]
lea ebx, [ebp - 0x248]
cmp ecx, 8
cmovae ebx, edx
test esi, esi
je 0x4b98a6
lea eax, [esi + esi]
push eax
push dword [ebp - 0x2b0]
push ebx
call fcn.00527280
mov ecx, dword [ebp - 0x234]
add esp, 0xc
mov edx, dword [ebp - 0x248]
mov ebx, dword [ebp - 0x2ac]
lea eax, [ebp - 0x248]
cmp ecx, 8
mov dword [ebp - 0x238], esi
cmovae eax, edx
xor ecx, ecx
mov word [eax + esi*2], cx
mov ecx, dword [ebp - 0x2b4]
lea eax, [ebp - 0x290]
push 0
push ebx
push eax
mov byte [ebp - 4], 6
call fcn.004b8b70
push eax
lea edx, [ebp - 0x248]
mov byte [ebp - 4], 7
mov ecx, edi
call fcn.004b9df0
add esp, 4
cmp dword [ebp - 0x27c], 8
jb 0x4b9909
push dword [ebp - 0x290]
call fcn.0052558c
add esp, 4
xor eax, eax
mov dword [ebp - 0x27c], 7
cmp dword [ebp - 0x234], 8
mov dword [ebp - 0x280], 0
mov word [ebp - 0x290], ax
jb 0x4b993d
push dword [ebp - 0x248]
call fcn.0052558c
add esp, 4
cmp dword [ebp - 0x24c], 8
jb 0x4b9954
push dword [ebp - 0x260]
call fcn.0052558c
add esp, 4
xor eax, eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x264], 8
mov dword [ebp - 0x24c], 7
mov dword [ebp - 0x250], 0
mov word [ebp - 0x260], ax
jb 0x4b998c
push dword [ebp - 0x278]
call fcn.0052558c
add esp, 4
inc ebx
mov dword [ebp - 0x2ac], ebx
cmp ebx, 0x15
jl 0x4b9650
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.005278d0
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x4b99c4
mov eax, dword [edi]
jmp 0x4b99c6
mov eax, edi
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp word [ebp - 0x218], 0
jne 0x4b99e7
xor esi, esi
jmp 0x4b99ff
lea esi, [ebp - 0x218]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4b99f0
sub esi, ecx
sar esi, 1
mov ecx, dword [edi + 0x14]
cmp ecx, 8
jb 0x4b9a0b
mov eax, dword [edi]
jmp 0x4b9a0d
mov eax, edi
lea edx, [ebp - 0x218]
cmp edx, eax
jb 0x4b9a53
cmp ecx, 8
jb 0x4b9a20
mov edx, dword [edi]
jmp 0x4b9a22
mov edx, edi
mov eax, dword [edi + 0x10]
lea eax, [edx + eax*2]
lea edx, [ebp - 0x218]
cmp eax, edx
jbe 0x4b9a53
cmp ecx, 8
jb 0x4b9a3b
mov ecx, dword [edi]
jmp 0x4b9a3d
mov ecx, edi
lea eax, [ebp - 0x218]
sub eax, ecx
mov ecx, edi
push esi
sar eax, 1
push eax
push edi
call fcn.0040757d
jmp 0x4b9acf
cmp esi, 0x7ffffffe
jbe 0x4b9a65
push str.string_too_long
call fcn.0050a84c
cmp ecx, esi
jae 0x4b9a82
push dword [edi + 0x10]
mov ecx, edi
push esi
call fcn.00407425
test esi, esi
je 0x4b9acf
cmp dword [edi + 0x14], 8
jb 0x4b9aa0
mov ecx, dword [edi]
jmp 0x4b9aa2
test esi, esi
jne 0x4b9a78
mov dword [edi + 0x10], esi
cmp ecx, 8
jb 0x4b9a97
mov eax, dword [edi]
xor ecx, ecx
mov word [eax], cx
jmp 0x4b9acf
mov eax, edi
xor ecx, ecx
mov word [eax], cx
jmp 0x4b9acf
mov ecx, edi
test esi, esi
je 0x4b9aba
lea eax, [esi + esi]
push eax
lea eax, [ebp - 0x218]
push eax
push ecx
call fcn.00527280
add esp, 0xc
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], esi
jb 0x4b9ac7
mov eax, dword [edi]
jmp 0x4b9ac9
mov eax, edi
xor ecx, ecx
mov word [eax + esi*2], cx
cmp dword [ebp + 0x10], 0
je 0x4b9ade
mov dl, 1
mov ecx, edi
call fcn.0043ebe6
cmp dword [ebp - 0x294], 8
jb 0x4b9af5
push dword [ebp - 0x2a8]
call fcn.0052558c
add esp, 4
mov eax, edi
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.0052b1ec
mov esp, ebp
pop ebp
ret 0xc