Function at 0x42e4b0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x214
cmp byte [eax + 0x17], 0
push ebx
push ebp
push esi
push edi
jne 0x42e4ce
mov eax, dword [eax + 0xc]
mov dword [esp + 0x228], eax
mov ebx, dword [esp + 0x1c]
xor esi, esi
mov dword [esp + 0x18], esi
test esi, esi
je 0x42e50b
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x228]
push 1
push 0
push ecx
push 0
push edi
call fcn.004aa2a0
cmp eax, 1
jne 0x42e891
push 0
push eax
mov ecx, edi
call fcn.004016f0
mov ebx, eax
jmp 0x42e513
mov dword [esp + 0x10], 0
mov ecx, dword [esp + 0x22c]
lea ebx, [ebx]
movzx eax, word [ecx]
mov ebp, 1
test ax, ax
je 0x42e56c
lea ecx, [ecx]
mov dx, word [0x511548]
mov di, word [0x511544]
cmp ax, dx
je 0x42e5d0
cmp ax, di
je 0x42e5d0
test esi, esi
je 0x42e55c
mov word [ebx], ax
add ebx, 2
jmp 0x42e560
add dword [esp + 0x10], ebp
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x42e530
add esi, ebp
mov dword [esp + 0x18], esi
cmp esi, 2
jl 0x42e4d8
xor ecx, ecx
push ecx
mov word [ebx], cx
mov ecx, dword [esp + 0x22c]
push ebp
call fcn.004016f0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42e591
mov esi, dword [esp + 0x228]
sub eax, edx
sar eax, 1
mov edi, eax
cmp byte [esi + 0x17], cl
jne 0x42e5b1
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 1
jne 0x42e8a0
test byte [esi + 0x15], 8
je 0x42e5c8
mov eax, esi
call fcn.00401610
lea eax, [esi + 0xc]
jmp 0x42e8a5
movzx eax, word [ecx]
test ax, ax
je 0x42e56c
cmp ax, dx
jne 0x42e6b0
test esi, esi
je 0x42e6a1
movzx eax, word [ecx + 2]
lea edx, [eax - 0x61]
cmp edx, 0x15
ja case.0x42e600.99
movzx edx, byte [edx + 0x42e918]
jmp dword [edx*4 + 0x42e8f8]
mov eax, 7
mov word [ebx], ax
add ecx, 2
add ebx, 2
add ecx, 2
jmp 0x42e520
mov edx, 8
mov word [ebx], dx
add ecx, 2
add ebx, 2
add ecx, 2
jmp 0x42e520
mov eax, 0xc
mov word [ebx], ax
add ecx, 2
add ebx, 2
add ecx, 2
jmp 0x42e520
mov edx, 0xa
mov word [ebx], dx
add ecx, 2
add ebx, 2
add ecx, 2
jmp 0x42e520
mov eax, 0xd
mov word [ebx], ax
add ecx, 2
add ebx, 2
add ecx, 2
jmp 0x42e520
mov edx, 9
mov word [ebx], dx
add ecx, 2
add ebx, 2
add ecx, 2
jmp 0x42e520
mov eax, 0xb
mov word [ebx], ax
add ecx, 2
add ebx, 2
add ecx, 2
jmp 0x42e520
add dword [esp + 0x10], ebp
add ecx, 2
add ecx, 2
jmp 0x42e520
lea edx, [ecx + 2]
mov ebp, edx
movzx eax, word [ebp]
test ax, ax
je 0x42e889
cmp ax, di
je 0x42e6db
movzx eax, word [ebp + 2]
add ebp, 2
test ax, ax
jne 0x42e6c2
add ecx, 2
jmp 0x42e520
cmp word [ebp], 0
je 0x42e889
mov edi, ebp
sub edi, ecx
sar edi, 1
dec edi
je 0x42e887
cmp edi, 0xfd
ja 0x42e887
push edi
push edx
lea ecx, [esp + 0x2c]
push ecx
call fcn.004c67b5
xor edx, edx
add esp, 0xc
mov word [esp + edi*2 + 0x24], dx
cmp word [esp + 0x24], dx
je 0x42e891
lea eax, [esp + 0x17]
push eax
push 3
lea ecx, [esp + 0x24]
push ecx
push edi
lea edx, [esp + 0x34]
push edx
mov ecx, 0x516ea8
call fcn.00422990
test eax, eax
jne 0x42e75f
cmp byte [esp + 0x17], al
mov ecx, dword [esp + 0x1c]
setne al
lea edx, [esp + 0x24]
inc eax
push eax
push ecx
push edx
push 0x516ea8
mov ecx, edi
call fcn.00422c40
mov esi, eax
test esi, esi
je 0x42e891
cmp byte [esi + 0x17], 0
jne 0x42e772
mov esi, dword [esi + 0xc]
cmp esi, dword [esp + 0x228]
je 0x42e883
cmp dword [esp + 0x18], 0
je 0x42e79f
push ebx
mov ecx, esi
call fcn.004aa680
mov esi, dword [esp + 0x18]
mov ecx, ebp
lea ebx, [ebx + eax*2]
add ecx, 2
jmp 0x42e520
movzx eax, byte [esi + 0x17]
cmp eax, 3
ja case.default.0x42e7ac
jmp dword [eax*4 + 0x42e930]
mov eax, esi
call fcn.00401610
cmp dword [0x516044], 0
jne 0x42e815
cmp dword [esi + 0xc], 0
jne 0x42e815
mov ecx, dword [esi + 0x18]
push 0
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x42e7fb
mov esi, dword [esp + 0x18]
dec eax
add dword [esp + 0x10], eax
mov ecx, ebp
mov dword [0x519f94], 0
add ecx, 2
jmp 0x42e520
mov dword [0x519f94], esi
mov esi, dword [esp + 0x18]
xor eax, eax
add dword [esp + 0x10], eax
mov ecx, ebp
add ecx, 2
jmp 0x42e520
mov eax, dword [esi + 0xc]
mov esi, dword [esp + 0x18]
shr eax, 1
add dword [esp + 0x10], eax
mov ecx, ebp
add ecx, 2
jmp 0x42e520
mov ecx, dword [esi + 0xc]
push 0
call fcn.004aa680
add dword [esp + 0x10], eax
mov esi, dword [esp + 0x18]
mov ecx, ebp
add ecx, 2
jmp 0x42e520
push 0
mov ecx, 0x5179e8
call fcn.00404920
cmp eax, 0xffffffff
jne 0x42e87f
mov esi, dword [esp + 0x18]
xor eax, eax
add dword [esp + 0x10], eax
mov ecx, ebp
add ecx, 2
jmp 0x42e520
mov edx, dword [esi + 0x18]
mov eax, dword [esi + 0x10]
push edx
push 0
call eax
add esp, 8
add dword [esp + 0x10], eax
mov esi, dword [esp + 0x18]
mov ecx, ebp
add ecx, 2
jmp 0x42e520
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret 8
mov eax, 0x51952c
lea edx, [edi + edi]
mov dword [eax], edx
mov eax, dword [esp + 0x228]
cmp byte [eax + 0x17], 0
jne 0x42e8ba
mov eax, dword [eax + 0xc]
cmp byte [eax + 0x17], 2
jne 0x42e8e0
cmp dword [0x5179f4], 0
je 0x42e8e0
mov ecx, 0x5179e8
call fcn.00404c10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret 8
and byte [eax + 0x15], 0x86
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x214
ret 8