Function at 0x4aad70
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x547ee7
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x592174]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
cmp dword [ecx + 0x10], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x26c], eax
lea eax, [ecx + 0x10]
jne 0x4aadb8
xor al, al
jmp 0x4ab2b0
xor edx, edx
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], dx
mov dword [ebp - 4], edx
mov edx, ecx
mov esi, dword [ecx + 0x14]
cmp esi, 8
jb 0x4aadf8
mov edx, dword [ecx]
cmp word [edx], 0x40
jne 0x4aaeba
mov eax, dword [eax]
mov edx, ecx
dec eax
lea ecx, [ebp - 0x248]
push eax
call fcn.00417d20
add esp, 4
mov esi, eax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x230]
cmp eax, esi
je 0x4aae57
mov ecx, eax
call fcn.004185c0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x230], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x220], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x234]
cmp edx, 8
jb 0x4aae9b
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4aae91
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ab2cb
push edx
push ecx
call fcn.0050b392
add esp, 8
xor eax, eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
jmp 0x4aaed9
lea edx, [ebp - 0x230]
cmp edx, ecx
je 0x4aaed9
cmp esi, 8
jb 0x4aaecb
mov ecx, dword [ecx]
push dword [eax]
push ecx
lea ecx, [ebp - 0x230]
call fcn.00418830
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0050d5d0
add esp, 0xc
lea ecx, [ebp - 0x218]
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x268], eax
cmp eax, 0x104
jb 0x4aaf8c
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0050b71f
add esp, 4
lea ecx, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
mov esi, eax
cmovae ecx, dword [ebp - 0x230]
push dword [ebp - 0x268]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4aaf65
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x230]
call fcn.00418830
push esi
call fcn.0050b728
add esp, 4
jmp 0x4aafb7
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4aaf95
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.00418830
push 2
xor eax, eax
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0
lea ecx, [ebp - 0x260]
push 0x56b3a0
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
call fcn.00418830
mov byte [ebp - 4], 2
lea eax, [ebp - 0x260]
cmp dword [ebp - 0x24c], 8
lea ecx, [ebp - 0x230]
push dword [ebp - 0x250]
cmovae eax, dword [ebp - 0x260]
mov esi, dword [ebp - 0x21c]
cmp esi, 8
mov edx, dword [ebp - 0x220]
cmovae ecx, dword [ebp - 0x230]
push eax
push 0
call fcn.004189e0
add esp, 0xc
mov dword [ebp - 0x268], eax
cmp eax, 0xffffffff
je 0x4ab1b9
push eax
lea edx, [ebp - 0x230]
lea ecx, [ebp - 0x248]
call fcn.00417ca0
add esp, 4
mov esi, eax
mov byte [ebp - 4], 3
cmp edi, esi
je 0x4ab097
mov ecx, edi
call fcn.004185c0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [edi], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x234]
cmp edx, 8
jb 0x4ab0db
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4ab0d1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ab2d0
push edx
push ecx
call fcn.0050b392
add esp, 8
mov esi, dword [ebp - 0x26c]
xor eax, eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
test esi, esi
je 0x4ab1b0
mov eax, dword [ebp - 0x220]
lea edx, [ebp - 0x230]
sub eax, dword [ebp - 0x250]
lea ecx, [ebp - 0x248]
sub eax, dword [ebp - 0x268]
push eax
call fcn.00417d20
mov byte [ebp - 4], 4
lea eax, [ebp - 0x248]
cmp dword [ebp - 0x234], 8
push 0
cmovae eax, dword [ebp - 0x248]
push eax
call fcn.00417520
add esp, 0xc
mov dword [esi], eax
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x234]
cmp edx, 8
jb 0x4ab193
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4ab189
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ab2d5
push edx
push ecx
call fcn.0050b392
add esp, 8
xor eax, eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
mov byte [ebp - 0x261], 1
jmp 0x4ab1e9
lea eax, [ebp - 0x230]
cmp edi, eax
je 0x4ab1db
push dword [ebp - 0x220]
cmp esi, 8
mov ecx, edi
cmovae eax, dword [ebp - 0x230]
push eax
call fcn.00418830
cmp dword [ebp - 0x26c], 0
sete byte [ebp - 0x261]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x24c]
cmp edx, 8
jb 0x4ab22d
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4ab223
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ab2da
push edx
push ecx
call fcn.0050b392
add esp, 8
xor eax, eax
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x4ab28d
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4ab283
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ab2df
push edx
push ecx
call fcn.0050b392
add esp, 8
xor eax, eax
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
mov al, byte [ebp - 0x261]
mov dword [ebp - 0x21c], 7
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.0050b0b7
mov esp, ebp
pop ebp
ret
call fcn.0050f799
call fcn.0050f799
call fcn.0050f799
call fcn.0050f799
call fcn.0050f799
int3