Function at 0x429880
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56d838
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5edd38]
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 0x429a3b
cmp word [eax], 0
je 0x429a3b
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test esi, esi
je 0x429a33
mov edx, dword [ebp - 0x18]
mov edi, edx
mov ebx, dword [ebp - 0x1c]
sub edi, ebx
sar edi, 1
cmp esi, edi
jae 0x429927
lea eax, [ebx + esi*2]
mov dword [ebp - 0x18], eax
jmp 0x429a17
jbe 0x429a17
mov ecx, dword [ebp - 0x14]
sub ecx, ebx
sar ecx, 1
cmp esi, ecx
jbe 0x4299f5
cmp esi, 0x7fffffff
ja 0x429ad9
mov edx, ecx
mov eax, 0x7fffffff
shr edx, 1
sub eax, edx
lfence
cmp ecx, eax
jbe 0x429961
mov eax, esi
mov dword [ebp - 0x20], esi
jmp 0x42996c
lea eax, [edx + ecx]
cmp eax, esi
cmovb eax, esi
mov dword [ebp - 0x20], eax
push eax
lea ecx, [ebp - 0x1c]
call fcn.00409030
mov ebx, eax
mov ecx, esi
lea edx, [ebx + edi*2]
sub ecx, edi
je 0x42998d
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.0053edc0
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
test ecx, ecx
je 0x4299e1
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 0x4299d3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x429ade
push edx
push ecx
call fcn.00409f25
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 0x429a17
sub eax, edi
mov dword [ebp - 0x20], eax
je 0x429a14
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 0x429a33
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
jmp 0x429a3b
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x18]
jne 0x429a40
mov edx, 0x586454
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 0x429a60
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, ebx
call fcn.00408f30
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x429abb
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 0x429ab1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x429ade
push edx
push ecx
call fcn.00409f25
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 fcn.00401682
mov esp, ebp
pop ebp
ret
call fcn.004790e0
call fcn.0054223b
int3