Function at 0x44b684
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 0x44b6df
mov eax, 0xffffffff
jmp 0x44bd67
mov eax, dword [ebp - 0x18]
movzx eax, word [eax]
cmp ax, 0x5b
jne 0x44b780
mov eax, dword [0x6e5208]
test eax, eax
jne 0x44b719
mov dword [esp], 0x65ec04
call sub.msvcrt.dll_getenv
test eax, eax
je 0x44b70f
mov eax, 1
jmp 0x44b714
mov eax, 0xffffffff
mov dword [0x6e5208], eax
add dword [ebp - 0x18], 2
mov eax, dword [ebp - 0x18]
movzx eax, word [eax]
cmp ax, 0x21
je 0x44b73e
mov eax, dword [0x6e5208]
test eax, eax
jns 0x44b742
mov eax, dword [ebp - 0x18]
movzx eax, word [eax]
cmp ax, 0x5e
jne 0x44b742
add dword [ebp - 0x18], 2
mov eax, dword [ebp - 0x18]
movzx eax, word [eax]
cmp ax, 0x5d
jne 0x44b752
add dword [ebp - 0x18], 2
jmp 0x44b76f
mov eax, dword [ebp - 0x18]
lea edx, [eax + 2]
mov dword [ebp - 0x18], edx
movzx eax, word [eax]
test ax, ax
jne 0x44b76f
mov eax, 0xffffffff
jmp 0x44bd67
mov eax, dword [ebp - 0x18]
movzx eax, word [eax]
cmp ax, 0x5d
jne 0x44b754
jmp 0x44b9cc
mov eax, dword [ebp - 0x18]
movzx eax, word [eax]
cmp ax, 0x3f
je 0x44b7bc
mov eax, dword [ebp - 0x18]
movzx eax, word [eax]
cmp ax, 0x2a
je 0x44b7bc
mov eax, dword [ebp - 0x18]
movzx eax, word [eax]
cmp ax, 0x2b
je 0x44b7bc
mov eax, dword [ebp - 0x18]
movzx eax, word [eax]
cmp ax, 0x40
je 0x44b7bc
mov eax, dword [ebp - 0x18]
movzx eax, word [eax]
cmp ax, 0x21
jne 0x44b7d4
mov eax, dword [ebp - 0x18]
add eax, 2
movzx eax, word [eax]
cmp ax, 0x28
jne 0x44b7d4
add dword [ebp - 0x10], 1
jmp 0x44b9cc
mov eax, dword [ebp - 0x18]
movzx eax, word [eax]
cmp ax, 0x29
jne 0x44b8da
mov eax, dword [ebp - 0x10]
lea edx, [eax - 1]
mov dword [ebp - 0x10], edx
test eax, eax
jne 0x44b9cc
cmp word [ebp - 0x4c], 0x3f
je 0x44b814
cmp word [ebp - 0x4c], 0x40
je 0x44b814
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
sub edx, eax
mov eax, edx
sar eax, 1
add eax, 1
jmp 0x44b817
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 0x44b841
cmp dword [ebp - 0x30], 3
jbe 0x44b841
cmp dword [ebp - 0x30], 0x1f3f
jbe 0x44b84b
mov eax, 0xffffffff
jmp 0x44bd67
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.00620f20
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.00622410
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.0x44b9dc.1
jmp 0x44b9d5
mov eax, dword [ebp - 0x18]
movzx eax, word [eax]
cmp ax, 0x7c
jne 0x44b9cc
cmp dword [ebp - 0x10], 0
jne 0x44b9cc
cmp word [ebp - 0x4c], 0x3f
je 0x44b913
cmp word [ebp - 0x4c], 0x40
je 0x44b913
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
sub edx, eax
mov eax, edx
sar eax, 1
add eax, 1
jmp 0x44b916
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 0x44b940
cmp dword [ebp - 0x40], 3
jbe 0x44b940
cmp dword [ebp - 0x40], 0x1f3f
jbe 0x44b94a
mov eax, 0xffffffff
jmp 0x44bd67
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.00620f20
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.00622410
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 0x44b6ca
mov eax, dword [eax*4 + 0x65ee74]
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.0044aae6
test eax, eax
jne case.0x44b9dc.10
mov eax, 0
jmp 0x44bd67
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
jmp 0x44bb81
mov eax, dword [ebp + 0x1c]
and eax, 1
test eax, eax
jne 0x44ba31
mov eax, dword [ebp + 0x1c]
and eax, 0xfffffffb
jmp 0x44ba34
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.0044aae6
test eax, eax
jne 0x44bb7d
mov eax, dword [ebp + 0x1c]
and eax, 1
test eax, eax
jne 0x44ba78
mov eax, dword [ebp + 0x1c]
and eax, 0xfffffffb
mov edx, eax
jmp 0x44ba7b
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp + 0x10]
jne 0x44ba91
movzx eax, byte [ebp - 0x50]
test eax, eax
setne al
movzx eax, al
jmp 0x44babd
mov eax, dword [ebp - 0x1c]
sub eax, 2
movzx eax, word [eax]
cmp ax, 0x2f
jne 0x44bab2
mov eax, dword [ebp + 0x1c]
and eax, 5
cmp eax, 5
jne 0x44bab2
mov eax, 1
jmp 0x44bab7
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.0044aae6
test eax, eax
je 0x44bb73
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp + 0x10]
je 0x44bb7d
mov eax, dword [ebp + 0x1c]
and eax, 1
test eax, eax
jne 0x44bb06
mov eax, dword [ebp + 0x1c]
and eax, 0xfffffffb
mov edx, eax
jmp 0x44bb09
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp + 0x10]
jne 0x44bb1f
movzx eax, byte [ebp - 0x50]
test eax, eax
setne al
movzx eax, al
jmp 0x44bb4b
mov eax, dword [ebp - 0x1c]
sub eax, 2
movzx eax, word [eax]
cmp ax, 0x2f
jne 0x44bb40
mov eax, dword [ebp + 0x1c]
and eax, 5
cmp eax, 5
jne 0x44bb40
mov eax, 1
jmp 0x44bb45
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.0044aae6
test eax, eax
jne 0x44bb7d
mov eax, 0
jmp 0x44bd67
add dword [ebp - 0x1c], 2
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp + 0x14]
jbe 0x44ba1f
mov eax, dword [ebp - 0x48]
mov eax, dword [eax]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
test eax, eax
jne case.0x44b9dc.10
mov eax, 1
jmp 0x44bd67
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.0044aae6
test eax, eax
jne case.0x44b9dc.31
mov eax, 0
jmp 0x44bd67
mov eax, dword [ebp + 0x1c]
and eax, 1
test eax, eax
jne 0x44bbf4
mov eax, dword [ebp + 0x1c]
and eax, 0xfffffffb
mov ebx, eax
jmp 0x44bbf7
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.0044aae6
test eax, eax
jne 0x44bc3e
mov eax, 0
jmp 0x44bd67
mov eax, dword [ebp - 0x48]
mov eax, dword [eax]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
test eax, eax
jne case.0x44b9dc.31
mov eax, 1
jmp 0x44bd67
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
jmp 0x44bd4e
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x20], eax
jmp 0x44bcb5
mov eax, dword [ebp + 0x1c]
and eax, 1
test eax, eax
jne 0x44bc7c
mov eax, dword [ebp + 0x1c]
and eax, 0xfffffffb
jmp 0x44bc7f
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.0044aae6
test eax, eax
jne 0x44bcad
jmp 0x44bcbb
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x44bc6a
cmp dword [ebp - 0x20], 0
jne 0x44bd4a
mov eax, dword [ebp + 0x1c]
and eax, 1
test eax, eax
jne 0x44bcd9
mov eax, dword [ebp + 0x1c]
and eax, 0xfffffffb
mov edx, eax
jmp 0x44bcdc
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp + 0x10]
jne 0x44bcf2
movzx eax, byte [ebp - 0x50]
test eax, eax
setne al
movzx eax, al
jmp 0x44bd1e
mov eax, dword [ebp - 0x1c]
sub eax, 2
movzx eax, word [eax]
cmp ax, 0x2f
jne 0x44bd13
mov eax, dword [ebp + 0x1c]
and eax, 5
cmp eax, 5
jne 0x44bd13
mov eax, 1
jmp 0x44bd18
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.0044aae6
test eax, eax
jne 0x44bd4a
mov eax, 0
jmp 0x44bd67
add dword [ebp - 0x1c], 2
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp + 0x14]
jbe 0x44bc62
mov eax, 1
jmp 0x44bd67
nop
mov eax, 0xffffffff
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret