Function at 0x449598
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]
add eax, 1
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax]
test al, al
jne 0x4495eb
mov eax, 0xffffffff
jmp 0x449c2f
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax]
cmp al, 0x5b
jne 0x449681
mov eax, dword [0x6ea1c8]
test eax, eax
jne 0x449623
mov dword [esp], 0x6628c4
call sub.msvcrt.dll_getenv
test eax, eax
je 0x449619
mov eax, 1
jmp 0x44961e
mov eax, 0xffffffff
mov dword [0x6ea1c8], eax
add dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax]
cmp al, 0x21
je 0x449644
mov eax, dword [0x6ea1c8]
test eax, eax
jns 0x449648
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax]
cmp al, 0x5e
jne 0x449648
add dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax]
cmp al, 0x5d
jne 0x449656
add dword [ebp - 0x18], 1
jmp 0x449672
mov eax, dword [ebp - 0x18]
lea edx, [eax + 1]
mov dword [ebp - 0x18], edx
movzx eax, byte [eax]
test al, al
jne 0x449672
mov eax, 0xffffffff
jmp 0x449c2f
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax]
cmp al, 0x5d
jne 0x449658
jmp 0x44989a
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax]
cmp al, 0x3f
je 0x4496b3
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax]
cmp al, 0x2a
je 0x4496b3
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax]
cmp al, 0x2b
je 0x4496b3
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax]
cmp al, 0x40
je 0x4496b3
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax]
cmp al, 0x21
jne 0x4496c9
mov eax, dword [ebp - 0x18]
add eax, 1
movzx eax, byte [eax]
cmp al, 0x28
jne 0x4496c9
add dword [ebp - 0x10], 1
jmp 0x44989a
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax]
cmp al, 0x29
jne 0x4497bb
mov eax, dword [ebp - 0x10]
lea edx, [eax - 1]
mov dword [ebp - 0x10], edx
test eax, eax
jne 0x44989a
cmp dword [ebp + 8], 0x3f
je 0x449703
cmp dword [ebp + 8], 0x40
je 0x449703
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
sub edx, eax
mov eax, edx
add eax, 1
jmp 0x449706
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, 4
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 3
jbe 0x449727
cmp dword [ebp - 0x30], 0x1f3f
jbe 0x449731
mov eax, 0xffffffff
jmp 0x449c2f
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
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.00625eb0
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
nop
mov eax, dword [ebp + 8]
sub eax, 0x21
cmp eax, 0x1f
ja case.0x4498aa.1
jmp 0x4498a3
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax]
cmp al, 0x7c
jne 0x44989a
cmp dword [ebp - 0x10], 0
jne 0x44989a
cmp dword [ebp + 8], 0x3f
je 0x4497ee
cmp dword [ebp + 8], 0x40
je 0x4497ee
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
sub edx, eax
mov eax, edx
add eax, 1
jmp 0x4497f1
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, 4
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 3
jbe 0x449812
cmp dword [ebp - 0x40], 0x1f3f
jbe 0x44981c
mov eax, 0xffffffff
jmp 0x449c2f
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
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.00625eb0
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
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0xc], eax
add dword [ebp - 0x18], 1
jmp 0x4495d7
mov eax, dword [eax*4 + 0x6629c4]
jmp eax
movzx eax, byte [ebp - 0x4c]
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.004489fc
test eax, eax
jne case.0x4498aa.10
mov eax, 0
jmp 0x449c2f
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
jmp 0x449a4b
mov eax, dword [ebp + 0x1c]
and eax, 1
test eax, eax
jne 0x4498ff
mov eax, dword [ebp + 0x1c]
and eax, 0xfffffffb
jmp 0x449902
mov eax, dword [ebp + 0x1c]
movzx edx, byte [ebp - 0x4c]
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.004489fc
test eax, eax
jne 0x449a47
mov eax, dword [ebp + 0x1c]
and eax, 1
test eax, eax
jne 0x449946
mov eax, dword [ebp + 0x1c]
and eax, 0xfffffffb
mov edx, eax
jmp 0x449949
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp + 0x10]
jne 0x44995f
movzx eax, byte [ebp - 0x4c]
test eax, eax
setne al
movzx eax, al
jmp 0x449989
mov eax, dword [ebp - 0x1c]
sub eax, 1
movzx eax, byte [eax]
cmp al, 0x2f
jne 0x44997e
mov eax, dword [ebp + 0x1c]
and eax, 5
cmp eax, 5
jne 0x44997e
mov eax, 1
jmp 0x449983
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.004489fc
test eax, eax
je 0x449a3d
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp + 0x10]
je 0x449a47
mov eax, dword [ebp + 0x1c]
and eax, 1
test eax, eax
jne 0x4499d2
mov eax, dword [ebp + 0x1c]
and eax, 0xfffffffb
mov edx, eax
jmp 0x4499d5
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp + 0x10]
jne 0x4499eb
movzx eax, byte [ebp - 0x4c]
test eax, eax
setne al
movzx eax, al
jmp 0x449a15
mov eax, dword [ebp - 0x1c]
sub eax, 1
movzx eax, byte [eax]
cmp al, 0x2f
jne 0x449a0a
mov eax, dword [ebp + 0x1c]
and eax, 5
cmp eax, 5
jne 0x449a0a
mov eax, 1
jmp 0x449a0f
mov eax, 0
and eax, 1
movzx eax, al
mov ecx, dword [ebp + 0xc]
sub ecx, 1
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.004489fc
test eax, eax
jne 0x449a47
mov eax, 0
jmp 0x449c2f
add dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp + 0x14]
jbe 0x4498ed
mov eax, dword [ebp - 0x48]
mov eax, dword [eax]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
test eax, eax
jne case.0x4498aa.10
mov eax, 1
jmp 0x449c2f
movzx eax, byte [ebp - 0x4c]
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.004489fc
test eax, eax
jne case.0x4498aa.31
mov eax, 0
jmp 0x449c2f
mov eax, dword [ebp + 0x1c]
and eax, 1
test eax, eax
jne 0x449abe
mov eax, dword [ebp + 0x1c]
and eax, 0xfffffffb
mov ebx, eax
jmp 0x449ac1
mov ebx, dword [ebp + 0x1c]
movzx esi, byte [ebp - 0x4c]
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 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.004489fc
test eax, eax
jne 0x449b08
mov eax, 0
jmp 0x449c2f
mov eax, dword [ebp - 0x48]
mov eax, dword [eax]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
test eax, eax
jne case.0x4498aa.31
mov eax, 1
jmp 0x449c2f
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
jmp 0x449c16
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x20], eax
jmp 0x449b7f
mov eax, dword [ebp + 0x1c]
and eax, 1
test eax, eax
jne 0x449b46
mov eax, dword [ebp + 0x1c]
and eax, 0xfffffffb
jmp 0x449b49
mov eax, dword [ebp + 0x1c]
movzx edx, byte [ebp - 0x4c]
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.004489fc
test eax, eax
jne 0x449b77
jmp 0x449b85
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x449b34
cmp dword [ebp - 0x20], 0
jne 0x449c12
mov eax, dword [ebp + 0x1c]
and eax, 1
test eax, eax
jne 0x449ba3
mov eax, dword [ebp + 0x1c]
and eax, 0xfffffffb
mov edx, eax
jmp 0x449ba6
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp + 0x10]
jne 0x449bbc
movzx eax, byte [ebp - 0x4c]
test eax, eax
setne al
movzx eax, al
jmp 0x449be6
mov eax, dword [ebp - 0x1c]
sub eax, 1
movzx eax, byte [eax]
cmp al, 0x2f
jne 0x449bdb
mov eax, dword [ebp + 0x1c]
and eax, 5
cmp eax, 5
jne 0x449bdb
mov eax, 1
jmp 0x449be0
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.004489fc
test eax, eax
jne 0x449c12
mov eax, 0
jmp 0x449c2f
add dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp + 0x14]
jbe 0x449b2c
mov eax, 1
jmp 0x449c2f
nop
mov eax, 0xffffffff
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret