Function at 0x4c39f0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5da0a9
mov eax, dword fs:[0]
push eax
sub esp, 0x2b4
mov eax, dword [0x63d284]
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 0x4c3a77
mov esi, dword [eax]
mov dword [ebp - 0x2b0], esi
mov dword [ebp - 0x2ac], SysReAllocString
cmp ecx, 8
jae 0x4c3a96
movups xmm0, xmmword [esi]
mov esi, 7
movups xmmword [edi], xmm0
jmp 0x4c3b32
mov esi, ecx
or esi, 7
cmp esi, 0x7ffffffe
cmova esi, dword [ebp - 0x2ac]
lea eax, [esi + 1]
cmp eax, 0x7fffffff
ja 0x4c439c
add eax, eax
cmp eax, 0x1000
jb 0x4c3ae6
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4c439c
push ecx
call fcn.00591cad
add esp, 4
test eax, eax
je 0x4c437a
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
jmp 0x4c3b01
test eax, eax
je 0x4c3aff
push eax
call fcn.00591cad
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x4c438b
jmp 0x4c3b01
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.005729d0
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.004c5480
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 0x4c3ba3
mov eax, dword [edi]
mov dword [ebp - 0x294], eax
cmp esi, 8
jae 0x4c3bd4
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 0x4c3c82
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 0x4c439c
add eax, eax
cmp eax, 0x1000
jb 0x4c3c27
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4c439c
push ecx
call fcn.00591cad
add esp, 4
test eax, eax
je 0x4c438b
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x4c3c48
test eax, eax
je 0x4c3c46
push eax
call fcn.00591cad
mov edi, eax
add esp, 4
mov dword [ebp - 0x2a8], edi
test edi, edi
je 0x4c437a
jmp 0x4c3c4e
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.005729d0
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 + 0x60b090]
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 0x4c3cc5
sub esi, ecx
sar esi, 1
cmp esi, 7
ja 0x4c3d01
mov dword [ebp - 0x220], esi
lea eax, [ebp - 0x230]
add esi, esi
push esi
push edi
push eax
call fcn.00572f50
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x230], ax
jmp 0x4c3dc0
cmp esi, 0x7ffffffe
ja 0x4c43a1
mov edi, esi
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x4c3d2b
mov dword [ebp - 0x294], SysReAllocString
mov eax, 0xfffffffe
jmp 0x4c3d4e
cmp edi, 0xa
cmovb edi, edx
mov dword [ebp - 0x294], edi
lea eax, [edi + 1]
cmp eax, 0x7fffffff
ja 0x4c439c
add eax, eax
cmp eax, 0x1000
jb 0x4c3d75
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4c439c
push ecx
call fcn.00591cad
add esp, 4
test eax, eax
je 0x4c43b7
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x4c3d90
test eax, eax
je 0x4c3d8e
push eax
call fcn.00591cad
mov edi, eax
add esp, 4
test edi, edi
je 0x4c43a6
jmp 0x4c3d90
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.005729d0
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.004c5480
add esp, 8
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x4c3e1e
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4c3e14
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c43c8
push edx
push ecx
call fcn.0056c61e
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.00447066
add esp, 0x14
cmp eax, 0xffffffff
je 0x4c4098
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 + 0x60b090]
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 0x4c3eb0
sub esi, ecx
sar esi, 1
cmp esi, 7
ja 0x4c3eec
mov dword [ebp - 0x220], esi
lea eax, [ebp - 0x230]
add esi, esi
push esi
push edi
push eax
call fcn.00572f50
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x230], ax
jmp 0x4c3fb0
cmp esi, 0x7ffffffe
ja 0x4c43a1
mov edi, esi
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x4c3f16
mov dword [ebp - 0x294], SysReAllocString
mov eax, 0xfffffffe
jmp 0x4c3f3e
cmp edi, 0xa
mov eax, 0xa
cmovb edi, eax
mov dword [ebp - 0x294], edi
lea eax, [edi + 1]
cmp eax, 0x7fffffff
ja 0x4c439c
add eax, eax
cmp eax, 0x1000
jb 0x4c3f65
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4c439c
push ecx
call fcn.00591cad
add esp, 4
test eax, eax
je 0x4c43a6
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x4c3f80
test eax, eax
je 0x4c3f7e
push eax
call fcn.00591cad
mov edi, eax
add esp, 4
test edi, edi
je 0x4c43b7
jmp 0x4c3f80
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.005729d0
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.004c2a00
mov byte [ebp - 4], 7
lea edx, [ebp - 0x230]
mov ecx, dword [ebp - 0x29c]
push eax
call fcn.004c52c0
mov byte [ebp - 4], 6
add esp, 4
mov edx, dword [ebp - 0x27c]
cmp edx, 8
jb 0x4c402b
mov ecx, dword [ebp - 0x290]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4c4021
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c43c8
push edx
push ecx
call fcn.0056c61e
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 0x4c408c
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4c4082
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c43c8
push edx
push ecx
call fcn.0056c61e
add esp, 8
mov esi, dword [ebp - 0x248]
mov edi, dword [ebp - 0x234]
mov byte [ebp - 4], 2
cmp edi, 8
jb 0x4c40d0
lea edi, [edi*2 + 2]
mov eax, esi
cmp edi, 0x1000
jb 0x4c40c6
mov esi, dword [esi - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c43c8
push edi
push esi
call fcn.0056c61e
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 0x4c4131
mov ecx, dword [ebp - 0x2a8]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4c4127
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c43c8
push edx
push ecx
call fcn.0056c61e
add esp, 8
mov ecx, dword [ebp - 0x2a4]
inc ecx
mov dword [ebp - 0x2a4], ecx
cmp ecx, 0x15
jae 0x4c414e
mov edi, dword [ebp - 0x29c]
jmp 0x4c3b67
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00573610
mov edi, dword [ebp - 0x29c]
add esp, 0xc
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x4c4174
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 0x4c4190
mov eax, dword [edi + 0x14]
sub esi, ecx
sar esi, 1
mov dword [ebp - 0x2b8], eax
cmp esi, eax
ja 0x4c41e8
mov dword [ebp - 0x294], edi
mov ecx, edi
cmp eax, 8
jb 0x4c41c1
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.00572f50
mov eax, dword [ebp - 0x294]
add esp, 0xc
xor ecx, ecx
mov word [eax + esi], cx
jmp 0x4c430e
cmp esi, 0x7ffffffe
ja 0x4c43a1
mov edi, esi
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x4c4212
mov dword [ebp - 0x2ac], SysReAllocString
mov eax, 0xfffffffe
jmp 0x4c4257
mov edx, dword [ebp - 0x2ac]
mov ecx, eax
shr ecx, 1
sub edx, ecx
cmp eax, edx
jbe 0x4c4233
mov dword [ebp - 0x2ac], SysReAllocString
mov eax, 0xfffffffe
jmp 0x4c4257
add eax, ecx
cmp edi, eax
cmovb edi, eax
mov dword [ebp - 0x2ac], edi
lea eax, [edi + 1]
cmp eax, 0x7fffffff
ja 0x4c439c
add eax, eax
cmp eax, 0x1000
jb 0x4c427e
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4c439c
push ecx
call fcn.00591cad
add esp, 4
test eax, eax
je 0x4c43a6
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x4c4299
test eax, eax
je 0x4c4297
push eax
call fcn.00591cad
mov edi, eax
add esp, 4
test edi, edi
je 0x4c43b7
jmp 0x4c4299
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.005729d0
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 0x4c4306
lea ecx, [eax*2 + 2]
mov eax, dword [esi]
cmp ecx, 0x1000
jb 0x4c42fc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c43c8
mov eax, edx
push ecx
push eax
call fcn.0056c61e
add esp, 8
mov dword [esi], edi
mov edi, dword [ebp - 0x29c]
cmp dword [ebp + 0x10], 0
je 0x4c431f
push 1
push edi
call fcn.00445234
add esp, 8
mov edx, dword [ebp - 0x264]
cmp edx, 8
jb 0x4c435b
mov ecx, dword [ebp - 0x278]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4c4351
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c43c8
push edx
push ecx
call fcn.0056c61e
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.0056cd75
mov esp, ebp
pop ebp
ret 0xc
push 0x638780
lea eax, [ebp - 0x29d]
push eax
call fcn.0057359b
push 0x638780
lea eax, [ebp - 0x29e]
push eax
call fcn.0057359b
call fcn.00407b84
call fcn.0040791f
push 0x638780
lea eax, [ebp - 0x296]
push eax
call fcn.0057359b
push 0x638780
lea eax, [ebp - 0x295]
push eax
call fcn.0057359b
call fcn.0057da80
int3