Function at 0x44476e
Capabilities:
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
push ebx
xor ebx, ebx
push esi
mov esi, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], esi
cmp dword [0x44e70c], ebx
jne 0x44499f
push ebx
push ebx
push 0x4013a4
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x4447a3
mov dword [ebp - 0x10], ebx
jmp 0x4447c8
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_osfhandle]
pop ecx
mov ecx, eax
call fcn.004274c7
test eax, eax
je 0x4447bf
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
jmp 0x4447c5
call dword [sym.imp.KERNEL32.dll_GetACP]
mov dword [ebp - 0x10], eax
mov ecx, ebx
xor edi, edi
xor ebx, ebx
mov dword [ebp - 4], ecx
inc edi
inc ebx
mov dword [ebp - 0xc], ebx
lea eax, [ebx + 0xa]
imul eax, eax, 0x14
add eax, ecx
imul ecx, eax, 0x32
add ecx, edi
call fcn.00423041
mov edx, eax
xor eax, eax
mov dword [ebp - 0x18], edx
cmp word [edx], ax
je 0x4448fa
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x14]
jne 0x4447fd
sub ecx, esi
sar ecx, 1
movzx eax, word [edx + ecx*2 - 2]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x444833
mov esi, edx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, word [ebp - 0x14]
jne 0x444821
sub esi, ecx
sar esi, 1
jmp 0x44484a
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push 0xffffffffffffffff
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edx, dword [ebp - 0x18]
lea esi, [eax - 1]
cmp esi, 0x28
jg 0x4448aa
cmp word [ebp - 0x1c], 0xa
je 0x4448aa
push edx
push 1
call fcn.0042405d
cmp dword [ebp - 8], 0
pop ecx
pop ecx
jne 0x444888
cmp esi, 0x28
jge 0x44489b
push 0x28
pop ebx
sub ebx, esi
push 0x401340
push 1
call fcn.0042405d
pop ecx
pop ecx
sub ebx, 1
jne 0x444870
mov ebx, dword [ebp - 0xc]
jmp 0x44489b
push 0x401170
push 1
call fcn.0042405d
pop ecx
pop ecx
call fcn.004449a4
xor eax, eax
cmp dword [ebp - 8], eax
sete al
mov esi, eax
mov dword [ebp - 8], esi
jmp 0x4448e9
mov esi, dword [ebp - 8]
test esi, esi
je 0x4448cb
xor eax, eax
mov esi, eax
push 0x401170
push 1
mov dword [ebp - 8], esi
call fcn.0042405d
pop ecx
pop ecx
call fcn.004449a4
push dword [ebp - 0x18]
push 1
call fcn.0042405d
push 0x401170
push 1
call fcn.0042405d
add esp, 0x10
call fcn.004449a4
cmp edi, 1
jne 0x4448fa
cmp ebx, edi
jne 0x4448fa
call fcn.004449a4
inc edi
jmp 0x444977
mov ecx, dword [ebp - 4]
inc edi
cmp edi, 0x32
jne 0x4447d6
xor edi, edi
inc edi
cmp ebx, edi
jne 0x444916
push 2
pop ebx
mov dword [ebp - 0xc], ebx
jmp 0x444977
cmp ebx, 2
jne 0x44491f
push 3
jmp 0x444910
push 0x401170
mov ebx, edi
push edi
mov dword [ebp - 0xc], ebx
call fcn.0042405d
pop ecx
pop ecx
call fcn.004449a4
test esi, esi
je 0x444953
xor eax, eax
mov esi, eax
push 0x401170
push edi
mov dword [ebp - 8], esi
call fcn.0042405d
pop ecx
pop ecx
call fcn.004449a4
mov ecx, dword [ebp - 4]
inc ecx
mov dword [ebp - 4], ecx
cmp ecx, 9
jl 0x4447d6
jne 0x44497f
call fcn.0042d6ab
test al, al
jne 0x444977
call fcn.0042d40c
test al, al
je 0x44497f
mov ecx, dword [ebp - 4]
jmp 0x4447d6
test byte [0x44e700], 0x80
je 0x444996
push ecx
push ecx
mov ecx, 0x406df8
call fcn.0044257e
pop ecx
pop ecx
xor eax, eax
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
pop esi
pop ebx
pop edi
leave
ret