Function at 0x41b360
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453940
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x46c664]
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 0x41b3d8
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 0x41b626
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.0041bba0
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.00401a80
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x41b520
cmp eax, esi
jbe 0x41b5bb
lea ecx, [esi + esi]
mov dword [ebp - 0xa0], ecx
cmp esi, ecx
jbe 0x41b465
lea esi, [ebx + ecx*2]
cmp esi, edi
je 0x41b4fe
push 0
push edi
push esi
call fcn.004328d0
add esp, 0xc
mov dword [ebp - 0x90], esi
jmp 0x41b4f8
jae 0x41b4fe
mov eax, ecx
sub eax, esi
mov edx, 0x7fffffff
sub edx, eax
cmp edx, esi
jb 0x41b5b1
add esi, eax
mov eax, dword [ebp - 0x8c]
sub eax, ebx
sar eax, 1
cmp esi, eax
jbe 0x41b4c6
mov ecx, eax
shr ecx, 1
mov edx, 0x7fffffff
sub edx, ecx
cmp edx, eax
jae 0x41b4a1
xor eax, eax
jmp 0x41b4a3
add eax, ecx
cmp eax, esi
cmovb eax, esi
push eax
lea ecx, [ebp - 0x94]
call fcn.0041bf50
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 0x41b4ef
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.00401a80
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x41b42e
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.0040e990
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x98]
push eax
lea ecx, [ebp - 0x68]
push ecx
mov ecx, esi
call fcn.00418520
mov byte [ebp - 4], 3
push eax
lea edx, [ebp - 0x84]
push edx
mov edx, 0x45e364
call fcn.004185a0
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 0x4630f4
lea ecx, [ebp - 0x30]
push ecx
call fcn.00436bf2
push str.vector_T__too_long
call fcn.00430350
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 0x41b5e0
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
call fcn.0040e990
mov dword [ebp - 0x9c], 1
mov byte [ebp - 4], 0
xor edi, edi
cmp ebx, edi
je 0x41b614
push ebx
call fcn.0043266a
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.00432675
mov esp, ebp
pop ebp
ret