Function at 0x44a86c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x70
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x18]
mov word [ebp - 0x4c], dx
mov byte [ebp - 0x50], 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]
movzx eax, word [eax]
test ax, ax
jne 0x44a8c7
mov eax, 0xffffffff
jmp 0x44af4f
mov eax, dword [ebp - 0x18]
movzx eax, word [eax]
cmp ax, 0x5b
jne 0x44a968
mov eax, dword [0x6ea1c8]
test eax, eax
jne 0x44a901
mov dword [esp], 0x6628c4
call sub.msvcrt.dll_getenv
test eax, eax
je 0x44a8f7
mov eax, 1
jmp 0x44a8fc
mov eax, 0xffffffff
mov dword [0x6ea1c8], eax
add dword [ebp - 0x18], 2
mov eax, dword [ebp - 0x18]
movzx eax, word [eax]
cmp ax, 0x21
je 0x44a926
mov eax, dword [0x6ea1c8]
test eax, eax
jns 0x44a92a
mov eax, dword [ebp - 0x18]
movzx eax, word [eax]
cmp ax, 0x5e
jne 0x44a92a
add dword [ebp - 0x18], 2
mov eax, dword [ebp - 0x18]
movzx eax, word [eax]
cmp ax, 0x5d
jne 0x44a93a
add dword [ebp - 0x18], 2
jmp 0x44a957
mov eax, dword [ebp - 0x18]
lea edx, [eax + 2]
mov dword [ebp - 0x18], edx
movzx eax, word [eax]
test ax, ax
jne 0x44a957
mov eax, 0xffffffff
jmp 0x44af4f
mov eax, dword [ebp - 0x18]
movzx eax, word [eax]
cmp ax, 0x5d
jne 0x44a93c
jmp 0x44abb4
mov eax, dword [ebp - 0x18]
movzx eax, word [eax]
cmp ax, 0x3f
je 0x44a9a4
mov eax, dword [ebp - 0x18]
movzx eax, word [eax]
cmp ax, 0x2a
je 0x44a9a4
mov eax, dword [ebp - 0x18]
movzx eax, word [eax]
cmp ax, 0x2b
je 0x44a9a4
mov eax, dword [ebp - 0x18]
movzx eax, word [eax]
cmp ax, 0x40
je 0x44a9a4
mov eax, dword [ebp - 0x18]
movzx eax, word [eax]
cmp ax, 0x21
jne 0x44a9bc
mov eax, dword [ebp - 0x18]
add eax, 2
movzx eax, word [eax]
cmp ax, 0x28
jne 0x44a9bc
add dword [ebp - 0x10], 1
jmp 0x44abb4
mov eax, dword [ebp - 0x18]
movzx eax, word [eax]
cmp ax, 0x29
jne 0x44aac2
mov eax, dword [ebp - 0x10]
lea edx, [eax - 1]
mov dword [ebp - 0x10], edx
test eax, eax
jne 0x44abb4
cmp word [ebp - 0x4c], 0x3f
je 0x44a9fc
cmp word [ebp - 0x4c], 0x40
je 0x44a9fc
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
sub edx, eax
mov eax, edx
sar eax, 1
add eax, 1
jmp 0x44a9ff
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, 4
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x28]
test eax, eax
js 0x44aa29
cmp dword [ebp - 0x30], 3
jbe 0x44aa29
cmp dword [ebp - 0x30], 0x1f3f
jbe 0x44aa33
mov eax, 0xffffffff
jmp 0x44af4f
mov eax, dword [ebp - 0x30]
lea edx, [eax + 0xf]
mov eax, 0x10
sub eax, 1
add eax, edx
mov esi, 0x10
mov edx, 0
div esi
imul eax, eax, 0x10
call fcn.00625290
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 ecx, eax
mov eax, dword [ebp - 0x34]
lea edx, [eax + 4]
mov dword [esp + 8], ecx
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.00626780
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
nop
movzx eax, word [ebp - 0x4c]
sub eax, 0x21
cmp eax, 0x1f
ja case.0x44abc4.1
jmp 0x44abbd
mov eax, dword [ebp - 0x18]
movzx eax, word [eax]
cmp ax, 0x7c
jne 0x44abb4
cmp dword [ebp - 0x10], 0
jne 0x44abb4
cmp word [ebp - 0x4c], 0x3f
je 0x44aafb
cmp word [ebp - 0x4c], 0x40
je 0x44aafb
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
sub edx, eax
mov eax, edx
sar eax, 1
add eax, 1
jmp 0x44aafe
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, 4
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x38]
test eax, eax
js 0x44ab28
cmp dword [ebp - 0x40], 3
jbe 0x44ab28
cmp dword [ebp - 0x40], 0x1f3f
jbe 0x44ab32
mov eax, 0xffffffff
jmp 0x44af4f
mov eax, dword [ebp - 0x40]
lea edx, [eax + 0xf]
mov eax, 0x10
sub eax, 1
add eax, edx
mov ebx, 0x10
mov edx, 0
div ebx
imul eax, eax, 0x10
call fcn.00625290
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 ecx, eax
mov eax, dword [ebp - 0x44]
lea edx, [eax + 4]
mov dword [esp + 8], ecx
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.00626780
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
mov eax, dword [ebp - 0x18]
add eax, 2
mov dword [ebp - 0xc], eax
add dword [ebp - 0x18], 2
jmp 0x44a8b2
mov eax, dword [eax*4 + 0x662b34]
jmp eax
movzx eax, byte [ebp - 0x50]
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.00449cce
test eax, eax
jne case.0x44abc4.10
mov eax, 0
jmp 0x44af4f
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
jmp 0x44ad69
mov eax, dword [ebp + 0x1c]
and eax, 1
test eax, eax
jne 0x44ac19
mov eax, dword [ebp + 0x1c]
and eax, 0xfffffffb
jmp 0x44ac1c
mov eax, dword [ebp + 0x1c]
movzx edx, byte [ebp - 0x50]
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.00449cce
test eax, eax
jne 0x44ad65
mov eax, dword [ebp + 0x1c]
and eax, 1
test eax, eax
jne 0x44ac60
mov eax, dword [ebp + 0x1c]
and eax, 0xfffffffb
mov edx, eax
jmp 0x44ac63
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp + 0x10]
jne 0x44ac79
movzx eax, byte [ebp - 0x50]
test eax, eax
setne al
movzx eax, al
jmp 0x44aca5
mov eax, dword [ebp - 0x1c]
sub eax, 2
movzx eax, word [eax]
cmp ax, 0x2f
jne 0x44ac9a
mov eax, dword [ebp + 0x1c]
and eax, 5
cmp eax, 5
jne 0x44ac9a
mov eax, 1
jmp 0x44ac9f
mov eax, 0
and eax, 1
movzx eax, al
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.00449cce
test eax, eax
je 0x44ad5b
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp + 0x10]
je 0x44ad65
mov eax, dword [ebp + 0x1c]
and eax, 1
test eax, eax
jne 0x44acee
mov eax, dword [ebp + 0x1c]
and eax, 0xfffffffb
mov edx, eax
jmp 0x44acf1
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp + 0x10]
jne 0x44ad07
movzx eax, byte [ebp - 0x50]
test eax, eax
setne al
movzx eax, al
jmp 0x44ad33
mov eax, dword [ebp - 0x1c]
sub eax, 2
movzx eax, word [eax]
cmp ax, 0x2f
jne 0x44ad28
mov eax, dword [ebp + 0x1c]
and eax, 5
cmp eax, 5
jne 0x44ad28
mov eax, 1
jmp 0x44ad2d
mov eax, 0
and eax, 1
movzx eax, al
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.00449cce
test eax, eax
jne 0x44ad65
mov eax, 0
jmp 0x44af4f
add dword [ebp - 0x1c], 2
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp + 0x14]
jbe 0x44ac07
mov eax, dword [ebp - 0x48]
mov eax, dword [eax]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
test eax, eax
jne case.0x44abc4.10
mov eax, 1
jmp 0x44af4f
movzx eax, byte [ebp - 0x50]
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.00449cce
test eax, eax
jne case.0x44abc4.31
mov eax, 0
jmp 0x44af4f
mov eax, dword [ebp + 0x1c]
and eax, 1
test eax, eax
jne 0x44addc
mov eax, dword [ebp + 0x1c]
and eax, 0xfffffffb
mov ebx, eax
jmp 0x44addf
mov ebx, dword [ebp + 0x1c]
movzx esi, byte [ebp - 0x50]
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 edx, eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], esi
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.00449cce
test eax, eax
jne 0x44ae26
mov eax, 0
jmp 0x44af4f
mov eax, dword [ebp - 0x48]
mov eax, dword [eax]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
test eax, eax
jne case.0x44abc4.31
mov eax, 1
jmp 0x44af4f
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
jmp 0x44af36
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x20], eax
jmp 0x44ae9d
mov eax, dword [ebp + 0x1c]
and eax, 1
test eax, eax
jne 0x44ae64
mov eax, dword [ebp + 0x1c]
and eax, 0xfffffffb
jmp 0x44ae67
mov eax, dword [ebp + 0x1c]
movzx edx, byte [ebp - 0x50]
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.00449cce
test eax, eax
jne 0x44ae95
jmp 0x44aea3
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x44ae52
cmp dword [ebp - 0x20], 0
jne 0x44af32
mov eax, dword [ebp + 0x1c]
and eax, 1
test eax, eax
jne 0x44aec1
mov eax, dword [ebp + 0x1c]
and eax, 0xfffffffb
mov edx, eax
jmp 0x44aec4
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp + 0x10]
jne 0x44aeda
movzx eax, byte [ebp - 0x50]
test eax, eax
setne al
movzx eax, al
jmp 0x44af06
mov eax, dword [ebp - 0x1c]
sub eax, 2
movzx eax, word [eax]
cmp ax, 0x2f
jne 0x44aefb
mov eax, dword [ebp + 0x1c]
and eax, 5
cmp eax, 5
jne 0x44aefb
mov eax, 1
jmp 0x44af00
mov eax, 0
and eax, 1
movzx eax, al
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.00449cce
test eax, eax
jne 0x44af32
mov eax, 0
jmp 0x44af4f
add dword [ebp - 0x1c], 2
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp + 0x14]
jbe 0x44ae4a
mov eax, 1
jmp 0x44af4f
nop
mov eax, 0xffffffff
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret