Function at 0x42e330
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49fc50
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x4d6720]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
call fcn.0041ce10
mov esi, dword [ebp + 8]
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
mov dword [ebp - 4], 0
jle 0x42e8a3
push 0x25
push eax
call fcn.00482e2a
add esp, 8
test eax, eax
je 0x42e8a3
sub eax, dword [esi]
sar eax, 1
cmp eax, 0xffffffff
je 0x42e8a3
lea ecx, [ebp - 0x2c]
call fcn.0046145f
push 0xfffe
mov byte [ebp - 4], 2
call fcn.0046083a
mov edi, eax
add esp, 4
mov dword [ebp - 0x1c], edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x42e5e9
mov esi, eax
jmp 0x42e3e0
cmp word [esi], 0
je 0x42e5e9
mov dword [ebp - 0x20], 1
call fcn.00468b49
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42e40b
push 0x80004005
call fcn.00401210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edx, [eax + 0x10]
mov dword [ebp - 0x14], edx
mov byte [ebp - 4], 3
movzx eax, word [esi]
test ax, ax
je 0x42e498
movzx ebx, ax
add esi, 2
mov dword [ebp - 0x24], esi
cmp bx, 0x3d
jne 0x42e43e
mov dword [ebp - 0x20], 0
jmp 0x42e41e
cmp dword [ebp - 0x20], 0
je 0x42e41e
mov edi, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
lea esi, [edi + 1]
sub eax, esi
or eax, ecx
jge 0x42e467
push esi
lea ecx, [ebp - 0x14]
call fcn.004015f0
mov edx, dword [ebp - 0x14]
mov word [edx + edi*2], bx
test esi, esi
jl 0x42e48e
mov eax, dword [ebp - 0x14]
cmp esi, dword [eax - 8]
jg 0x42e48e
mov edi, dword [ebp - 0x1c]
mov dword [eax - 0xc], esi
mov edx, dword [ebp - 0x14]
xor ecx, ecx
mov word [edx + esi*2], cx
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x24]
jmp 0x42e41e
push 0x80070057
call fcn.00401210
lea ecx, [ebp - 0x14]
call fcn.00401ce0
mov ecx, eax
call fcn.00401810
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x42e5be
push 0x7fff
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x42e5be
call fcn.00468b49
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42e4e3
push 0x80004005
call fcn.00401210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x34], eax
call fcn.00468b49
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42e50c
push 0x80004005
call fcn.00401210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
call fcn.00401a50
test edi, edi
jne 0x42e533
xor eax, eax
jmp 0x42e54f
mov eax, edi
lea edx, [eax + 2]
jmp 0x42e540
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42e540
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x30]
call fcn.00401760
push 0x22
lea ecx, [ebp - 0x30]
call fcn.004038f0
sub esp, 8
lea edx, [ebp - 0x34]
mov ecx, esp
mov dword [ebp - 0x38], esp
push edx
call fcn.00419080
lea ecx, [ebp - 0x50]
call fcn.0041a360
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42e59f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42e5be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42e5e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 2
jmp 0x42e3e0
mov dword [ebp - 4], 1
mov byte [ebp - 4], 0
call fcn.00461477
mov eax, dword [ebp - 0x18]
xor edi, edi
cmp eax, edi
je 0x42e609
push eax
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, dword [ebp - 0x1c]
cmp eax, edi
je 0x42e619
push eax
call fcn.0046082f
add esp, 4
call fcn.00468b49
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x42e646
push 0x80004005
call fcn.00401210
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 1
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 6
call fcn.00468b49
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x42e673
push 0x80004005
call fcn.00401210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov dword [ebp - 0x28], eax
mov eax, dword [eax - 0xc]
xor ebx, ebx
cmp eax, edi
mov byte [ebp - 4], 7
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x38], eax
jle 0x42e851
mov edx, dword [ebp - 0x28]
movzx eax, word [edx + edi*2]
mov dword [ebp - 0x24], eax
cmp ax, 0x25
jne 0x42e786
cmp dword [ebp - 0x1c], 0
jne 0x42e6d7
lea ecx, [ebp - 0x18]
call fcn.00401580
mov ebx, edi
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x20], ebx
jmp 0x42e7fa
mov eax, dword [ebp - 0x48]
xor esi, esi
cmp eax, esi
mov dword [ebp - 0x1c], esi
jle 0x42e712
test esi, esi
jl 0x42e8c4
cmp esi, eax
jge 0x42e8c4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + esi*8]
push ecx
push eax
call fcn.00482f61
add esp, 8
test eax, eax
je 0x42e76c
mov eax, dword [ebp - 0x48]
inc esi
cmp esi, eax
jl 0x42e6e3
cmp edi, ebx
jle 0x42e7fa
mov eax, edi
sub eax, ebx
inc eax
push eax
push ebx
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00406960
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 8
call fcn.00401990
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
mov byte [ebp - 4], 7
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42e7fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x42e7fa
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + esi*8 + 4]
mov ecx, dword [eax - 0xc]
lea esi, [edx + esi*8 + 4]
push ecx
push eax
lea ecx, [ebp - 0x14]
call fcn.00401990
jmp 0x42e7fa
cmp dword [ebp - 0x1c], 0
mov ecx, 1
je 0x42e7b4
mov edx, dword [ebp - 0x18]
mov ebx, dword [edx - 0xc]
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
lea esi, [ebx + 1]
sub eax, esi
or eax, ecx
jge 0x42e7d5
push esi
lea ecx, [ebp - 0x18]
call fcn.004015f0
mov edx, dword [ebp - 0x18]
jmp 0x42e7d5
mov edx, dword [ebp - 0x14]
mov ebx, dword [edx - 0xc]
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
lea esi, [ebx + 1]
sub eax, esi
or eax, ecx
jge 0x42e7d5
push esi
lea ecx, [ebp - 0x14]
call fcn.004015f0
mov edx, dword [ebp - 0x14]
mov cx, word [ebp - 0x24]
mov word [edx + ebx*2], cx
test esi, esi
jl 0x42e48e
cmp esi, dword [edx - 8]
jg 0x42e48e
mov ebx, dword [ebp - 0x20]
xor eax, eax
mov dword [edx - 0xc], esi
mov word [edx + esi*2], ax
inc edi
cmp edi, dword [ebp - 0x38]
jl 0x42e6a4
cmp dword [ebp - 0x1c], 0
je 0x42e851
sub edi, ebx
inc edi
push edi
push ebx
lea ecx, [ebp - 0x38]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00406960
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 9
call fcn.00401990
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
mov byte [ebp - 4], 7
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42e851
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00401a50
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 6
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42e880
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42e8a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 0xffffffff
call fcn.00422630
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0046132c
int3