Function at 0x464ff6
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x70
mov eax, dword [ebp + 0x18]
mov byte [ebp - 0x4c], al
mov dword [ebp - 0x48], 0
lea eax, [ebp - 0x48]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_wcslen
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 0xc]
add eax, 2
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
mov ax, word [eax]
test ax, ax
jne 0x46504a
mov eax, 0xffffffff
jmp 0x4656f6
mov eax, dword [ebp - 0x18]
mov ax, word [eax]
cmp ax, 0x5b
jne 0x4650eb
mov eax, dword [0x7b4528]
test eax, eax
jne 0x465084
mov dword [esp], 0x6f9f44
call sub.msvcrt.dll_getenv
test eax, eax
je 0x46507a
mov eax, 1
jmp 0x46507f
mov eax, 0xffffffff
mov dword [0x7b4528], eax
add dword [ebp - 0x18], 2
mov eax, dword [ebp - 0x18]
mov ax, word [eax]
cmp ax, 0x21
je 0x4650a9
mov eax, dword [0x7b4528]
test eax, eax
jns 0x4650ad
mov eax, dword [ebp - 0x18]
mov ax, word [eax]
cmp ax, 0x5e
jne 0x4650ad
add dword [ebp - 0x18], 2
mov eax, dword [ebp - 0x18]
mov ax, word [eax]
cmp ax, 0x5d
jne 0x4650da
add dword [ebp - 0x18], 2
jmp 0x4650da
mov eax, dword [ebp - 0x18]
lea edx, [eax + 2]
mov dword [ebp - 0x18], edx
mov ax, word [eax]
test ax, ax
jne 0x4650da
mov eax, 0xffffffff
jmp 0x4656f6
mov eax, dword [ebp - 0x18]
mov ax, word [eax]
cmp ax, 0x5d
jne 0x4650bf
jmp 0x46532b
mov eax, dword [ebp - 0x18]
mov ax, word [eax]
cmp ax, 0x3f
je 0x465127
mov eax, dword [ebp - 0x18]
mov ax, word [eax]
cmp ax, 0x2a
je 0x465127
mov eax, dword [ebp - 0x18]
mov ax, word [eax]
cmp ax, 0x2b
je 0x465127
mov eax, dword [ebp - 0x18]
mov ax, word [eax]
cmp ax, 0x40
je 0x465127
mov eax, dword [ebp - 0x18]
mov ax, word [eax]
cmp ax, 0x21
jne 0x46513e
mov eax, dword [ebp - 0x18]
add eax, 2
mov ax, word [eax]
cmp ax, 0x28
jne 0x46513e
inc dword [ebp - 0x10]
jmp 0x46532b
mov eax, dword [ebp - 0x18]
mov ax, word [eax]
cmp ax, 0x29
jne 0x46523e
mov eax, dword [ebp - 0x10]
lea edx, [eax - 1]
mov dword [ebp - 0x10], edx
test eax, eax
jne 0x46532b
cmp dword [ebp + 8], 0x3f
je 0x46517a
cmp dword [ebp + 8], 0x40
je 0x46517a
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
sub edx, eax
mov eax, edx
sar eax, 1
inc eax
jmp 0x46517d
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
add eax, eax
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
add eax, 7
and eax, 0xfffffffc
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x38]
test eax, eax
js 0x4651aa
cmp dword [ebp - 0x40], 3
jbe 0x4651aa
cmp dword [ebp - 0x40], 0x1f3f
jbe 0x4651b4
mov eax, 0xffffffff
jmp 0x4656f6
mov eax, dword [ebp - 0x40]
lea edx, [eax + 0xf]
mov eax, 0x10
dec eax
add eax, edx
mov ebx, 0x10
mov edx, 0
div ebx
imul eax, eax, 0x10
call fcn.006b7700
sub esp, eax
lea eax, [esp + 0x14]
add eax, 0xf
shr eax, 4
shl eax, 4
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
sub edx, eax
mov eax, edx
sar eax, 1
mov edx, dword [ebp - 0x44]
add edx, 4
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.006b8d20
mov word [eax], 0
mov eax, dword [ebp - 0x44]
mov dword [eax], 0
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x44]
mov dword [eax], edx
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x14], eax
nop
mov eax, dword [ebp + 8]
sub eax, 0x21
cmp eax, 0x1f
ja case.0x46533b.1
jmp 0x465334
mov eax, dword [ebp - 0x18]
mov ax, word [eax]
cmp ax, 0x7c
jne 0x46532b
cmp dword [ebp - 0x10], 0
jne 0x46532b
cmp dword [ebp + 8], 0x3f
je 0x465273
cmp dword [ebp + 8], 0x40
je 0x465273
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
sub edx, eax
mov eax, edx
sar eax, 1
inc eax
jmp 0x465276
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
add eax, eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
add eax, 7
and eax, 0xfffffffc
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x28]
test eax, eax
js 0x4652a3
cmp dword [ebp - 0x30], 3
jbe 0x4652a3
cmp dword [ebp - 0x30], 0x1f3f
jbe 0x4652ad
mov eax, 0xffffffff
jmp 0x4656f6
mov eax, dword [ebp - 0x30]
lea edx, [eax + 0xf]
mov eax, 0x10
dec eax
add eax, edx
mov ebx, 0x10
mov edx, 0
div ebx
imul eax, eax, 0x10
call fcn.006b7700
sub esp, eax
lea eax, [esp + 0x14]
add eax, 0xf
shr eax, 4
shl eax, 4
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
sub edx, eax
mov eax, edx
sar eax, 1
mov edx, dword [ebp - 0x34]
add edx, 4
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.006b8d20
mov word [eax], 0
mov eax, dword [ebp - 0x34]
mov dword [eax], 0
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x34]
mov dword [eax], edx
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
add eax, 2
mov dword [ebp - 0xc], eax
add dword [ebp - 0x18], 2
jmp 0x465035
mov eax, dword [eax*4 + 0x6fa1b4]
jmp eax
mov al, byte [ebp - 0x4c]
and eax, 0xff
mov edx, dword [ebp + 0x1c]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.004643e9
test eax, eax
jne case.0x46533b.10
mov eax, 0
jmp 0x4656f6
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
jmp 0x4654f9
mov eax, dword [ebp + 0x1c]
and eax, 1
test eax, eax
jne 0x465394
mov eax, dword [ebp + 0x1c]
and eax, 0xfffffffb
jmp 0x465397
mov eax, dword [ebp + 0x1c]
mov dl, byte [ebp - 0x4c]
and edx, 0xff
mov ecx, dword [ebp - 0x48]
add ecx, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edx
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.004643e9
test eax, eax
jne 0x4654f5
mov eax, dword [ebp + 0x1c]
and eax, 1
test eax, eax
jne 0x4653e0
mov eax, dword [ebp + 0x1c]
and eax, 0xfffffffb
mov edx, eax
jmp 0x4653e3
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp + 0x10]
jne 0x4653ff
mov al, byte [ebp - 0x4c]
and eax, 0xff
test eax, eax
setne al
and eax, 0xff
jmp 0x46542d
mov eax, dword [ebp - 0x1c]
sub eax, 2
mov ax, word [eax]
cmp ax, 0x2f
jne 0x465420
mov eax, dword [ebp + 0x1c]
and eax, 5
cmp eax, 5
jne 0x465420
mov eax, 1
jmp 0x465425
mov eax, 0
and eax, 1
and eax, 0xff
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.004643e9
test eax, eax
je 0x4654eb
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp + 0x10]
je 0x4654f5
mov eax, dword [ebp + 0x1c]
and eax, 1
test eax, eax
jne 0x465476
mov eax, dword [ebp + 0x1c]
and eax, 0xfffffffb
mov edx, eax
jmp 0x465479
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp + 0x10]
jne 0x465495
mov al, byte [ebp - 0x4c]
and eax, 0xff
test eax, eax
setne al
and eax, 0xff
jmp 0x4654c3
mov eax, dword [ebp - 0x1c]
sub eax, 2
mov ax, word [eax]
cmp ax, 0x2f
jne 0x4654b6
mov eax, dword [ebp + 0x1c]
and eax, 5
cmp eax, 5
jne 0x4654b6
mov eax, 1
jmp 0x4654bb
mov eax, 0
and eax, 1
and eax, 0xff
mov ecx, dword [ebp + 0xc]
sub ecx, 2
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.004643e9
test eax, eax
jne 0x4654f5
mov eax, 0
jmp 0x4656f6
add dword [ebp - 0x1c], 2
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp + 0x14]
jbe 0x465382
mov eax, dword [ebp - 0x48]
mov eax, dword [eax]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
test eax, eax
jne case.0x46533b.10
mov eax, 1
jmp 0x4656f6
mov al, byte [ebp - 0x4c]
and eax, 0xff
mov edx, dword [ebp + 0x1c]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.004643e9
test eax, eax
jne case.0x46533b.31
mov eax, 0
jmp 0x4656f6
mov eax, dword [ebp + 0x1c]
and eax, 1
test eax, eax
jne 0x465570
mov eax, dword [ebp + 0x1c]
and eax, 0xfffffffb
mov ebx, eax
jmp 0x465573
mov ebx, dword [ebp + 0x1c]
mov al, byte [ebp - 0x4c]
mov esi, eax
and esi, 0xff
mov eax, dword [ebp - 0x48]
lea edx, [eax + 4]
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.msvcrt.dll_wcscat
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], esi
mov edx, dword [ebp + 0x14]
mov dword [esp + 8], edx
mov edx, dword [ebp + 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004643e9
test eax, eax
jne 0x4655bf
mov eax, 0
jmp 0x4656f6
mov eax, dword [ebp - 0x48]
mov eax, dword [eax]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
test eax, eax
jne case.0x46533b.31
mov eax, 1
jmp 0x4656f6
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
jmp 0x4656dd
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x20], eax
jmp 0x465639
mov eax, dword [ebp + 0x1c]
and eax, 1
test eax, eax
jne 0x4655fd
mov eax, dword [ebp + 0x1c]
and eax, 0xfffffffb
jmp 0x465600
mov eax, dword [ebp + 0x1c]
mov dl, byte [ebp - 0x4c]
and edx, 0xff
mov ecx, dword [ebp - 0x20]
add ecx, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edx
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.004643e9
test eax, eax
je 0x465641
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4655eb
jmp 0x465642
nop
cmp dword [ebp - 0x20], 0
jne 0x4656d9
mov eax, dword [ebp + 0x1c]
and eax, 1
test eax, eax
jne 0x465660
mov eax, dword [ebp + 0x1c]
and eax, 0xfffffffb
mov edx, eax
jmp 0x465663
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp + 0x10]
jne 0x46567f
mov al, byte [ebp - 0x4c]
and eax, 0xff
test eax, eax
setne al
and eax, 0xff
jmp 0x4656ad
mov eax, dword [ebp - 0x1c]
sub eax, 2
mov ax, word [eax]
cmp ax, 0x2f
jne 0x4656a0
mov eax, dword [ebp + 0x1c]
and eax, 5
cmp eax, 5
jne 0x4656a0
mov eax, 1
jmp 0x4656a5
mov eax, 0
and eax, 1
and eax, 0xff
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.004643e9
test eax, eax
jne 0x4656d9
mov eax, 0
jmp 0x4656f6
add dword [ebp - 0x1c], 2
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp + 0x14]
jbe 0x4655e3
mov eax, 1
jmp 0x4656f6
nop
mov eax, 0xffffffff
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret