Function at 0x4cd6a0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d61b9
mov eax, dword fs:[0]
push eax
sub esp, 0x2b4
mov eax, dword [0x634254]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2b8], ecx
mov edi, dword [ebp + 8]
xor edx, edx
mov eax, dword [ebp + 0xc]
mov esi, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c0], edi
mov dword [ebp - 0x2bc], edx
mov dword [edi], edx
mov dword [edi + 0x10], edx
mov dword [edi + 0x14], edx
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x29c], edi
mov dword [ebp - 0x294], eax
mov dword [ebp - 0x2a4], edx
mov dword [ebp - 0x2a8], ecx
mov dword [ebp - 0x2b0], eax
jb 0x4cd727
mov esi, dword [eax]
mov dword [ebp - 0x2b0], esi
mov dword [ebp - 0x2ac], SysStringLen
cmp ecx, 8
jae 0x4cd746
movups xmm0, xmmword [esi]
mov esi, 7
movups xmmword [edi], xmm0
jmp 0x4cd7e2
mov esi, ecx
or esi, 7
cmp esi, 0x7ffffffe
cmova esi, dword [ebp - 0x2ac]
lea eax, [esi + 1]
cmp eax, 0x7fffffff
ja 0x4ce048
add eax, eax
cmp eax, 0x1000
jb 0x4cd796
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4ce048
push ecx
call fcn.005a1c68
add esp, 4
test eax, eax
je 0x4ce026
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
jmp 0x4cd7b1
test eax, eax
je 0x4cd7af
push eax
call fcn.005a1c68
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x4ce037
jmp 0x4cd7b1
xor ecx, ecx
mov eax, dword [ebp - 0x2a8]
mov dword [edi], ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x2b0]
push ecx
call fcn.00570780
mov eax, dword [ebp - 0x294]
add esp, 0xc
mov ecx, dword [ebp - 0x2a8]
mov edx, dword [ebp - 0x2a4]
mov dword [ebp - 4], 0
or edx, 1
push eax
mov dword [edi + 0x10], ecx
lea eax, [ebp - 0x278]
mov dword [edi + 0x14], esi
push eax
mov dword [ebp - 0x2bc], edx
call fcn.004cf090
add esp, 8
xor ecx, ecx
mov dword [ebp - 4], 1
mov dword [ebp - 0x2a4], ecx
cmp dword [edi + 0x14], 8
mov edx, 0xa
mov esi, dword [edi + 0x10]
mov eax, edi
mov dword [ebp - 0x260], 0
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x294], edi
jb 0x4cd853
mov eax, dword [edi]
mov dword [ebp - 0x294], eax
cmp esi, 8
jae 0x4cd884
movups xmm0, xmmword [eax]
mov eax, 7
mov dword [ebp - 0x2b0], eax
movups xmmword [ebp - 0x260], xmm0
mov dword [ebp - 0x24c], eax
mov eax, dword [ebp - 0x260]
mov dword [ebp - 0x2a8], eax
jmp 0x4cd932
mov eax, esi
or eax, 7
cmp eax, 0x7ffffffe
cmova eax, dword [ebp - 0x2ac]
mov dword [ebp - 0x2b0], eax
inc eax
cmp eax, 0x7fffffff
ja 0x4ce048
add eax, eax
cmp eax, 0x1000
jb 0x4cd8d7
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4ce048
push ecx
call fcn.005a1c68
add esp, 4
test eax, eax
je 0x4ce037
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x4cd8f8
test eax, eax
je 0x4cd8f6
push eax
call fcn.005a1c68
mov edi, eax
add esp, 4
mov dword [ebp - 0x2a8], edi
test edi, edi
je 0x4ce026
jmp 0x4cd8fe
xor edi, edi
mov dword [ebp - 0x2a8], edi
lea eax, [esi*2 + 2]
mov dword [ebp - 0x260], edi
push eax
push dword [ebp - 0x294]
push edi
call fcn.00570780
mov eax, dword [ebp - 0x2b0]
add esp, 0xc
mov ecx, dword [ebp - 0x2a4]
mov edx, 0xa
mov dword [ebp - 0x24c], eax
mov dword [ebp - 0x250], esi
mov byte [ebp - 4], 2
xor eax, eax
mov edi, dword [ecx*4 + 0x604370]
mov esi, edi
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x2b4], edi
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
lea ecx, [esi + 2]
mov word [ebp - 0x230], ax
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4cd975
sub esi, ecx
sar esi, 1
cmp esi, 7
ja 0x4cd9b1
mov dword [ebp - 0x220], esi
lea eax, [ebp - 0x230]
add esi, esi
push esi
push edi
push eax
call fcn.00570d00
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x230], ax
jmp 0x4cda70
cmp esi, 0x7ffffffe
ja 0x4ce04d
mov edi, esi
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x4cd9db
mov dword [ebp - 0x294], SysStringLen
mov eax, 0xfffffffe
jmp 0x4cd9fe
cmp edi, 0xa
cmovb edi, edx
mov dword [ebp - 0x294], edi
lea eax, [edi + 1]
cmp eax, 0x7fffffff
ja 0x4ce048
add eax, eax
cmp eax, 0x1000
jb 0x4cda25
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4ce048
push ecx
call fcn.005a1c68
add esp, 4
test eax, eax
je 0x4ce063
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x4cda40
test eax, eax
je 0x4cda3e
push eax
call fcn.005a1c68
mov edi, eax
add esp, 4
test edi, edi
je 0x4ce052
jmp 0x4cda40
xor edi, edi
mov eax, dword [ebp - 0x294]
mov dword [ebp - 0x220], esi
add esi, esi
push esi
push dword [ebp - 0x2b4]
mov dword [ebp - 0x21c], eax
push edi
call fcn.00570780
add esp, 0xc
mov dword [ebp - 0x230], edi
xor eax, eax
mov word [esi + edi], ax
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.004cf090
add esp, 8
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x4cdace
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4cdac4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ce074
push edx
push ecx
call fcn.0056d0c8
add esp, 8
mov edi, dword [ebp - 0x234]
lea ecx, [ebp - 0x248]
push dword [ebp - 0x238]
mov esi, dword [ebp - 0x248]
lea eax, [ebp - 0x278]
cmp edi, 8
cmovae ecx, esi
cmp dword [ebp - 0x264], 8
push ecx
cmovae eax, dword [ebp - 0x278]
push 0
push dword [ebp - 0x268]
push eax
call fcn.00444702
add esp, 0x14
cmp eax, 0xffffffff
je 0x4cdd48
mov edi, dword [ebp - 0x2a4]
xor eax, eax
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov edi, dword [edi*4 + 0x604370]
mov esi, edi
mov dword [ebp - 0x2b4], edi
mov word [ebp - 0x230], ax
lea ecx, [esi + 2]
nop word [eax + eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4cdb60
sub esi, ecx
sar esi, 1
cmp esi, 7
ja 0x4cdb9c
mov dword [ebp - 0x220], esi
lea eax, [ebp - 0x230]
add esi, esi
push esi
push edi
push eax
call fcn.00570d00
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x230], ax
jmp 0x4cdc60
cmp esi, 0x7ffffffe
ja 0x4ce04d
mov edi, esi
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x4cdbc6
mov dword [ebp - 0x294], SysStringLen
mov eax, 0xfffffffe
jmp 0x4cdbee
cmp edi, 0xa
mov eax, 0xa
cmovb edi, eax
mov dword [ebp - 0x294], edi
lea eax, [edi + 1]
cmp eax, 0x7fffffff
ja 0x4ce048
add eax, eax
cmp eax, 0x1000
jb 0x4cdc15
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4ce048
push ecx
call fcn.005a1c68
add esp, 4
test eax, eax
je 0x4ce052
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x4cdc30
test eax, eax
je 0x4cdc2e
push eax
call fcn.005a1c68
mov edi, eax
add esp, 4
test edi, edi
je 0x4ce063
jmp 0x4cdc30
xor edi, edi
mov eax, dword [ebp - 0x294]
mov dword [ebp - 0x220], esi
add esi, esi
push esi
push dword [ebp - 0x2b4]
mov dword [ebp - 0x21c], eax
push edi
call fcn.00570780
add esp, 0xc
mov dword [ebp - 0x230], edi
xor eax, eax
mov word [esi + edi], ax
mov ecx, dword [ebp - 0x2b8]
lea eax, [ebp - 0x290]
push 0
mov byte [ebp - 4], 6
push dword [ebp - 0x2a4]
push eax
call fcn.004cc6b0
mov byte [ebp - 4], 7
lea edx, [ebp - 0x230]
mov ecx, dword [ebp - 0x29c]
push eax
call fcn.004ceee0
mov byte [ebp - 4], 6
add esp, 4
mov edx, dword [ebp - 0x27c]
cmp edx, 8
jb 0x4cdcdb
mov ecx, dword [ebp - 0x290]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4cdcd1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ce074
push edx
push ecx
call fcn.0056d0c8
add esp, 8
xor eax, eax
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x21c]
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x27c], 7
mov word [ebp - 0x290], ax
cmp edx, 8
jb 0x4cdd3c
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4cdd32
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ce074
push edx
push ecx
call fcn.0056d0c8
add esp, 8
mov esi, dword [ebp - 0x248]
mov edi, dword [ebp - 0x234]
mov byte [ebp - 4], 2
cmp edi, 8
jb 0x4cdd80
lea edi, [edi*2 + 2]
mov eax, esi
cmp edi, 0x1000
jb 0x4cdd76
mov esi, dword [esi - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ce074
push edi
push esi
call fcn.0056d0c8
add esp, 8
xor eax, eax
mov byte [ebp - 4], 1
mov word [ebp - 0x248], ax
mov eax, dword [ebp - 0x2b0]
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
cmp eax, 8
jb 0x4cdde1
mov ecx, dword [ebp - 0x2a8]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4cddd7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ce074
push edx
push ecx
call fcn.0056d0c8
add esp, 8
mov ecx, dword [ebp - 0x2a4]
inc ecx
mov dword [ebp - 0x2a4], ecx
cmp ecx, 0x15
jae 0x4cddfe
mov edi, dword [ebp - 0x29c]
jmp 0x4cd817
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.005713c0
mov edi, dword [ebp - 0x29c]
add esp, 0xc
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x4cde24
mov eax, dword [edi]
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
lea esi, [ebp - 0x218]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4cde40
mov eax, dword [edi + 0x14]
sub esi, ecx
sar esi, 1
mov dword [ebp - 0x2b8], eax
cmp esi, eax
ja 0x4cde98
mov dword [ebp - 0x294], edi
mov ecx, edi
cmp eax, 8
jb 0x4cde71
mov ecx, dword [edi]
mov dword [ebp - 0x294], ecx
mov dword [edi + 0x10], esi
lea eax, [ebp - 0x218]
add esi, esi
push esi
push eax
push ecx
call fcn.00570d00
mov eax, dword [ebp - 0x294]
add esp, 0xc
xor ecx, ecx
mov word [eax + esi], cx
jmp 0x4cdfbe
cmp esi, 0x7ffffffe
ja 0x4ce04d
mov edi, esi
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x4cdec2
mov dword [ebp - 0x2ac], SysStringLen
mov eax, 0xfffffffe
jmp 0x4cdf07
mov edx, dword [ebp - 0x2ac]
mov ecx, eax
shr ecx, 1
sub edx, ecx
cmp eax, edx
jbe 0x4cdee3
mov dword [ebp - 0x2ac], SysStringLen
mov eax, 0xfffffffe
jmp 0x4cdf07
add eax, ecx
cmp edi, eax
cmovb edi, eax
mov dword [ebp - 0x2ac], edi
lea eax, [edi + 1]
cmp eax, 0x7fffffff
ja 0x4ce048
add eax, eax
cmp eax, 0x1000
jb 0x4cdf2e
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4ce048
push ecx
call fcn.005a1c68
add esp, 4
test eax, eax
je 0x4ce052
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x4cdf49
test eax, eax
je 0x4cdf47
push eax
call fcn.005a1c68
mov edi, eax
add esp, 4
test edi, edi
je 0x4ce063
jmp 0x4cdf49
xor edi, edi
mov ecx, dword [ebp - 0x29c]
mov eax, dword [ebp - 0x2ac]
mov dword [ecx + 0x10], esi
add esi, esi
mov dword [ecx + 0x14], eax
lea eax, [ebp - 0x218]
push esi
push eax
push edi
call fcn.00570780
xor eax, eax
add esp, 0xc
mov word [edi + esi], ax
mov eax, dword [ebp - 0x2b8]
mov esi, dword [ebp - 0x29c]
cmp eax, 8
jb 0x4cdfb6
lea ecx, [eax*2 + 2]
mov eax, dword [esi]
cmp ecx, 0x1000
jb 0x4cdfac
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ce074
mov eax, edx
push ecx
push eax
call fcn.0056d0c8
add esp, 8
mov dword [esi], edi
mov edi, dword [ebp - 0x29c]
cmp dword [ebp + 0x10], 0
je 0x4cdfcb
mov ecx, edi
call fcn.004428e0
mov edx, dword [ebp - 0x264]
cmp edx, 8
jb 0x4ce007
mov ecx, dword [ebp - 0x278]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4cdffd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ce074
push edx
push ecx
call fcn.0056d0c8
add esp, 8
mov eax, edi
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.0056d855
mov esp, ebp
pop ebp
ret 0xc
push 0x630328
lea eax, [ebp - 0x29d]
push eax
call fcn.0057134b
push 0x630328
lea eax, [ebp - 0x29e]
push eax
call fcn.0057134b
call fcn.00407541
call fcn.004072dc
push 0x630328
lea eax, [ebp - 0x296]
push eax
call fcn.0057134b
push 0x630328
lea eax, [ebp - 0x295]
push eax
call fcn.0057134b
call fcn.0057b201
int3