Function at 0x42de50
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59aae8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x62cf50]
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
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0xc]
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
test eax, eax
je 0x42e00b
cmp word [eax], 0
je 0x42e00b
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test esi, esi
je 0x42e003
mov edx, dword [ebp - 0x18]
mov edi, edx
mov ebx, dword [ebp - 0x1c]
sub edi, ebx
sar edi, 1
cmp esi, edi
jae 0x42def7
lea eax, [ebx + esi*2]
mov dword [ebp - 0x18], eax
jmp 0x42dfe7
jbe 0x42dfe7
mov ecx, dword [ebp - 0x14]
sub ecx, ebx
sar ecx, 1
cmp esi, ecx
jbe 0x42dfc5
cmp esi, 0x7fffffff
ja 0x42e0a9
mov edx, ecx
mov eax, 0x7fffffff
shr edx, 1
sub eax, edx
lfence
cmp ecx, eax
jbe 0x42df31
mov eax, esi
mov dword [ebp - 0x20], esi
jmp 0x42df3c
lea eax, [edx + ecx]
cmp eax, esi
cmovb eax, esi
mov dword [ebp - 0x20], eax
push eax
lea ecx, [ebp - 0x1c]
call fcn.00409eb0
mov ebx, eax
mov ecx, esi
lea edx, [ebx + edi*2]
sub ecx, edi
je 0x42df5d
xor eax, eax
mov edi, edx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
sub ecx, eax
push ecx
push eax
push ebx
call fcn.0056a950
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
test ecx, ecx
je 0x42dfb1
mov eax, dword [ebp - 0x14]
sub eax, ecx
sar eax, 1
lea edx, [eax + eax]
mov eax, ecx
mov byte [ebp - 4], 1
cmp edx, 0x1000
jb 0x42dfa3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42e0ae
push edx
push ecx
call fcn.0040a1a2
add esp, 8
mov byte [ebp - 4], 0
lea eax, [ebx + esi*2]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
lea eax, [ebx + eax*2]
mov dword [ebp - 0x14], eax
jmp 0x42dfe7
sub eax, edi
mov dword [ebp - 0x20], eax
je 0x42dfe4
mov ecx, eax
mov edi, edx
xor eax, eax
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov eax, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
lea edx, [edx + eax*2]
mov dword [ebp - 0x18], edx
push esi
push ebx
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, eax
lea eax, [esi - 1]
cmp ecx, eax
je 0x42e003
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
jmp 0x42e00b
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x18]
jne 0x42e010
mov edx, 0x5b6ea8
mov ebx, dword [ebp - 0x28]
mov ecx, edx
xor eax, eax
mov dword [ebx + 0x10], 0
lea esi, [ecx + 2]
mov dword [ebx + 0x14], 7
mov word [ebx], ax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42e030
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, ebx
call fcn.00409db0
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x42e08b
mov eax, dword [ebp - 0x14]
sub eax, ecx
sar eax, 1
lea edx, [eax + eax]
mov eax, ecx
mov dword [ebp - 4], 2
cmp edx, 0x1000
jb 0x42e081
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42e0ae
push edx
push ecx
call fcn.0040a1a2
add esp, 8
mov eax, ebx
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 int.004016cd
mov esp, ebp
pop ebp
ret
call fcn.0047f6a0
call fcn.0056e2db
int3