Function at 0x4441d4
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 [0x44d70c], ebx
jne 0x444405
push ebx
push ebx
push 0x401408
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x444209
mov dword [ebp - 0x10], ebx
jmp 0x44422e
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_osfhandle]
pop ecx
mov ecx, eax
call fcn.004271c7
test eax, eax
je 0x444225
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
jmp 0x44422b
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.00422dd4
mov edx, eax
xor eax, eax
mov dword [ebp - 0x18], edx
cmp word [edx], ax
je 0x444360
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x14]
jne 0x444263
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 0x444299
mov esi, edx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, word [ebp - 0x14]
jne 0x444287
sub esi, ecx
sar esi, 1
jmp 0x4442b0
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 0x444310
cmp word [ebp - 0x1c], 0xa
je 0x444310
push edx
push 1
call fcn.004258b5
cmp dword [ebp - 8], 0
pop ecx
pop ecx
jne 0x4442ee
cmp esi, 0x28
jge 0x444301
push 0x28
pop ebx
sub ebx, esi
push 0x40138c
push 1
call fcn.004258b5
pop ecx
pop ecx
sub ebx, 1
jne 0x4442d6
mov ebx, dword [ebp - 0xc]
jmp 0x444301
push 0x401170
push 1
call fcn.004258b5
pop ecx
pop ecx
call fcn.0044440a
xor eax, eax
cmp dword [ebp - 8], eax
sete al
mov esi, eax
mov dword [ebp - 8], esi
jmp 0x44434f
mov esi, dword [ebp - 8]
test esi, esi
je 0x444331
xor eax, eax
mov esi, eax
push 0x401170
push 1
mov dword [ebp - 8], esi
call fcn.004258b5
pop ecx
pop ecx
call fcn.0044440a
push dword [ebp - 0x18]
push 1
call fcn.004258b5
push 0x401170
push 1
call fcn.004258b5
add esp, 0x10
call fcn.0044440a
cmp edi, 1
jne 0x444360
cmp ebx, edi
jne 0x444360
call fcn.0044440a
inc edi
jmp 0x4443dd
mov ecx, dword [ebp - 4]
inc edi
cmp edi, 0x32
jne 0x44423c
xor edi, edi
inc edi
cmp ebx, edi
jne 0x44437c
push 2
pop ebx
mov dword [ebp - 0xc], ebx
jmp 0x4443dd
cmp ebx, 2
jne 0x444385
push 5
jmp 0x444376
push 0x401170
mov ebx, edi
push edi
mov dword [ebp - 0xc], ebx
call fcn.004258b5
pop ecx
pop ecx
call fcn.0044440a
test esi, esi
je 0x4443b9
xor eax, eax
mov esi, eax
push 0x401170
push edi
mov dword [ebp - 8], esi
call fcn.004258b5
pop ecx
pop ecx
call fcn.0044440a
mov ecx, dword [ebp - 4]
inc ecx
mov dword [ebp - 4], ecx
cmp ecx, 9
jl 0x44423c
jne 0x4443e5
call fcn.0042d1a8
test al, al
jne 0x4443dd
call fcn.0042cf09
test al, al
je 0x4443e5
mov ecx, dword [ebp - 4]
jmp 0x44423c
test byte [0x44d700], 0x80
je 0x4443fc
push ecx
push ecx
mov ecx, 0x406d40
call fcn.00441fde
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