Function at 0x41af50
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452f90
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x46b664]
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
xor edi, edi
mov dword [ebp - 0x9c], edi
mov eax, dword [ecx + 0x10]
mov esi, edx
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0x98], ecx
cmp eax, edi
jne 0x41afc8
xor eax, eax
push edi
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
push ecx
or eax, 0xffffffff
mov ecx, esi
call fcn.00401a90
mov dword [ebp - 4], edi
mov dword [ebp - 0x9c], 1
jmp 0x41b216
lea ecx, [eax + eax]
push ecx
lea esi, [ebp - 0x94]
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x90], edi
mov dword [ebp - 0x8c], edi
call fcn.0041ba10
mov dword [ebp - 4], 1
mov edi, dword [ebp - 0x90]
mov ebx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x98]
mov esi, edi
sub esi, ebx
sar esi, 1
push esi
push ebx
call fcn.00401500
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x41b110
cmp eax, esi
jbe 0x41b1ab
lea ecx, [esi + esi]
mov dword [ebp - 0xa0], ecx
cmp esi, ecx
jbe 0x41b055
lea esi, [ebx + ecx*2]
cmp esi, edi
je 0x41b0ee
push 0
push edi
push esi
call fcn.00432040
add esp, 0xc
mov dword [ebp - 0x90], esi
jmp 0x41b0e8
jae 0x41b0ee
mov eax, ecx
sub eax, esi
mov edx, 0x7fffffff
sub edx, eax
cmp edx, esi
jb 0x41b1a1
add esi, eax
mov eax, dword [ebp - 0x8c]
sub eax, ebx
sar eax, 1
cmp esi, eax
jbe 0x41b0b6
mov ecx, eax
shr ecx, 1
mov edx, 0x7fffffff
sub edx, ecx
cmp edx, eax
jae 0x41b091
xor eax, eax
jmp 0x41b093
add eax, ecx
cmp eax, esi
cmovb eax, esi
push eax
lea ecx, [ebp - 0x94]
call fcn.0041bb00
mov ebx, dword [ebp - 0x94]
mov edi, dword [ebp - 0x90]
mov ecx, dword [ebp - 0xa0]
mov eax, edi
sub eax, ebx
sar eax, 1
mov edx, ecx
sub edx, eax
je 0x41b0df
xor eax, eax
movzx esi, ax
mov eax, esi
shl esi, 0x10
or eax, esi
mov ecx, edx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [ebp - 0x90]
lea ecx, [edi + edx*2]
mov dword [ebp - 0x90], ecx
mov edi, dword [ebp - 0x90]
mov eax, dword [ebp - 0x98]
mov esi, edi
sub esi, ebx
sar esi, 1
push esi
push ebx
call fcn.00401500
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x41b01e
xor edx, edx
mov edi, 7
push 0x21
mov eax, str.WinAPI::expandEnvironmentStrings_
lea esi, [ebp - 0x4c]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], 0
mov word [ebp - 0x4c], dx
call fcn.0040eba0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x98]
push eax
lea ecx, [ebp - 0x68]
push ecx
mov ecx, esi
call fcn.004185e0
mov byte [ebp - 4], 3
push eax
lea edx, [ebp - 0x84]
push edx
mov edx, 0x45d364
call fcn.00418660
add esp, 0x10
mov esi, eax
mov bl, 4
mov byte [ebp - 4], bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x30], eax
xor eax, eax
push eax
mov word [ebp - 0x2c], ax
push esi
or eax, 0xffffffff
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], 0
call fcn.00401a90
mov byte [ebp - 4], bl
push 0x462084
lea ecx, [ebp - 0x30]
push ecx
call fcn.00436362
push str.vector_T__too_long
call fcn.0042fac0
mov esi, dword [ebp - 0xa4]
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov eax, ebx
mov word [esi], dx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41b1d0
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
call fcn.0040eba0
mov dword [ebp - 0x9c], 1
mov byte [ebp - 4], 0
xor edi, edi
cmp ebx, edi
je 0x41b204
push ebx
call fcn.00431dda
add esp, 4
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x90], edi
mov dword [ebp - 0x8c], edi
mov eax, esi
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.00431de5
mov esp, ebp
pop ebp
ret