Function at 0x463cae
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_strlen
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
mov al, byte [eax]
test al, al
jne 0x463cfe
mov eax, 0xffffffff
jmp 0x464348
mov eax, dword [ebp - 0x18]
mov al, byte [eax]
cmp al, 0x5b
jne 0x463d8b
mov eax, dword [0x7b4528]
test eax, eax
jne 0x463d35
mov dword [esp], 0x6f9f44
call sub.msvcrt.dll_getenv
test eax, eax
je 0x463d2b
mov eax, 1
jmp 0x463d30
mov eax, 0xffffffff
mov dword [0x7b4528], eax
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
mov al, byte [eax]
cmp al, 0x21
je 0x463d53
mov eax, dword [0x7b4528]
test eax, eax
jns 0x463d56
mov eax, dword [ebp - 0x18]
mov al, byte [eax]
cmp al, 0x5e
jne 0x463d56
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
mov al, byte [eax]
cmp al, 0x5d
jne 0x463d7d
inc dword [ebp - 0x18]
jmp 0x463d7d
mov eax, dword [ebp - 0x18]
lea edx, [eax + 1]
mov dword [ebp - 0x18], edx
mov al, byte [eax]
test al, al
jne 0x463d7d
mov eax, 0xffffffff
jmp 0x464348
mov eax, dword [ebp - 0x18]
mov al, byte [eax]
cmp al, 0x5d
jne 0x463d64
jmp 0x463f91
mov eax, dword [ebp - 0x18]
mov al, byte [eax]
cmp al, 0x3f
je 0x463db8
mov eax, dword [ebp - 0x18]
mov al, byte [eax]
cmp al, 0x2a
je 0x463db8
mov eax, dword [ebp - 0x18]
mov al, byte [eax]
cmp al, 0x2b
je 0x463db8
mov eax, dword [ebp - 0x18]
mov al, byte [eax]
cmp al, 0x40
je 0x463db8
mov eax, dword [ebp - 0x18]
mov al, byte [eax]
cmp al, 0x21
jne 0x463dca
mov eax, dword [ebp - 0x18]
inc eax
mov al, byte [eax]
cmp al, 0x28
jne 0x463dca
inc dword [ebp - 0x10]
jmp 0x463f91
mov eax, dword [ebp - 0x18]
mov al, byte [eax]
cmp al, 0x29
jne 0x463eb8
mov eax, dword [ebp - 0x10]
lea edx, [eax - 1]
mov dword [ebp - 0x10], edx
test eax, eax
jne 0x463f91
cmp dword [ebp + 8], 0x3f
je 0x463e01
cmp dword [ebp + 8], 0x40
je 0x463e01
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
sub edx, eax
mov eax, edx
inc eax
jmp 0x463e04
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
add eax, 7
and eax, 0xfffffffc
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 3
jbe 0x463e28
cmp dword [ebp - 0x40], 0x1f3f
jbe 0x463e32
mov eax, 0xffffffff
jmp 0x464348
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
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.006b84a0
mov byte [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.0x463fa0.1
jmp 0x463f99
mov eax, dword [ebp - 0x18]
mov al, byte [eax]
cmp al, 0x7c
jne 0x463f91
cmp dword [ebp - 0x10], 0
jne 0x463f91
cmp dword [ebp + 8], 0x3f
je 0x463ee8
cmp dword [ebp + 8], 0x40
je 0x463ee8
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
sub edx, eax
mov eax, edx
inc eax
jmp 0x463eeb
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
add eax, 7
and eax, 0xfffffffc
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 3
jbe 0x463f0f
cmp dword [ebp - 0x30], 0x1f3f
jbe 0x463f19
mov eax, 0xffffffff
jmp 0x464348
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
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.006b84a0
mov byte [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]
inc eax
mov dword [ebp - 0xc], eax
inc dword [ebp - 0x18]
jmp 0x463ceb
mov eax, dword [eax*4 + 0x6fa044]
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.00463084
test eax, eax
jne case.0x463fa0.10
mov eax, 0
jmp 0x464348
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
jmp 0x464151
mov eax, dword [ebp + 0x1c]
and eax, 1
test eax, eax
jne 0x463ff9
mov eax, dword [ebp + 0x1c]
and eax, 0xfffffffb
jmp 0x463ffc
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.00463084
test eax, eax
jne 0x46414e
mov eax, dword [ebp + 0x1c]
and eax, 1
test eax, eax
jne 0x464045
mov eax, dword [ebp + 0x1c]
and eax, 0xfffffffb
mov edx, eax
jmp 0x464048
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp + 0x10]
jne 0x464064
mov al, byte [ebp - 0x4c]
and eax, 0xff
test eax, eax
setne al
and eax, 0xff
jmp 0x46408d
mov eax, dword [ebp - 0x1c]
dec eax
mov al, byte [eax]
cmp al, 0x2f
jne 0x464080
mov eax, dword [ebp + 0x1c]
and eax, 5
cmp eax, 5
jne 0x464080
mov eax, 1
jmp 0x464085
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.00463084
test eax, eax
je 0x464144
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp + 0x10]
je 0x46414e
mov eax, dword [ebp + 0x1c]
and eax, 1
test eax, eax
jne 0x4640d6
mov eax, dword [ebp + 0x1c]
and eax, 0xfffffffb
mov edx, eax
jmp 0x4640d9
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp + 0x10]
jne 0x4640f5
mov al, byte [ebp - 0x4c]
and eax, 0xff
test eax, eax
setne al
and eax, 0xff
jmp 0x46411e
mov eax, dword [ebp - 0x1c]
dec eax
mov al, byte [eax]
cmp al, 0x2f
jne 0x464111
mov eax, dword [ebp + 0x1c]
and eax, 5
cmp eax, 5
jne 0x464111
mov eax, 1
jmp 0x464116
mov eax, 0
and eax, 1
and eax, 0xff
mov ecx, dword [ebp + 0xc]
dec ecx
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.00463084
test eax, eax
jne 0x46414e
mov eax, 0
jmp 0x464348
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp + 0x14]
jbe 0x463fe7
mov eax, dword [ebp - 0x48]
mov eax, dword [eax]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
test eax, eax
jne case.0x463fa0.10
mov eax, 1
jmp 0x464348
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.00463084
test eax, eax
jne case.0x463fa0.31
mov eax, 0
jmp 0x464348
mov eax, dword [ebp + 0x1c]
and eax, 1
test eax, eax
jne 0x4641c8
mov eax, dword [ebp + 0x1c]
and eax, 0xfffffffb
mov ebx, eax
jmp 0x4641cb
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_strcat
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.00463084
test eax, eax
jne 0x464217
mov eax, 0
jmp 0x464348
mov eax, dword [ebp - 0x48]
mov eax, dword [eax]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
test eax, eax
jne case.0x463fa0.31
mov eax, 1
jmp 0x464348
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
jmp 0x46432f
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x20], eax
jmp 0x464291
mov eax, dword [ebp + 0x1c]
and eax, 1
test eax, eax
jne 0x464255
mov eax, dword [ebp + 0x1c]
and eax, 0xfffffffb
jmp 0x464258
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.00463084
test eax, eax
je 0x464299
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x464243
jmp 0x46429a
nop
cmp dword [ebp - 0x20], 0
jne 0x46432c
mov eax, dword [ebp + 0x1c]
and eax, 1
test eax, eax
jne 0x4642b8
mov eax, dword [ebp + 0x1c]
and eax, 0xfffffffb
mov edx, eax
jmp 0x4642bb
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp + 0x10]
jne 0x4642d7
mov al, byte [ebp - 0x4c]
and eax, 0xff
test eax, eax
setne al
and eax, 0xff
jmp 0x464300
mov eax, dword [ebp - 0x1c]
dec eax
mov al, byte [eax]
cmp al, 0x2f
jne 0x4642f3
mov eax, dword [ebp + 0x1c]
and eax, 5
cmp eax, 5
jne 0x4642f3
mov eax, 1
jmp 0x4642f8
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.00463084
test eax, eax
jne 0x46432c
mov eax, 0
jmp 0x464348
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp + 0x14]
jbe 0x46423b
mov eax, 1
jmp 0x464348
nop
mov eax, 0xffffffff
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret