Function at 0x44f0dc
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x3c
mov ebp, dword [esp + 0x54]
mov esi, ecx
test ebp, ebp
je 0x44f10b
push edx
call dword [sym.imp.kernel32.dll_GetStdHandle]
cmp eax, 0xffffffff
je 0x44f11a
mov edi, eax
test eax, eax
jne 0x44f13c
mov eax, edi
push 6
pop edi
mov dword [esi + 4], edi
mov dword [esi], eax
jmp 0x44f112
and dword [esi + 4], 0
mov byte [esi], 4
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
lea edi, [esp + 0x14]
mov ecx, edi
call fcn.004257f0
cmp byte [edi], 4
jne 0x44f130
mov edi, dword [esp + 0x18]
jmp 0x44f13c
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
cmp al, 4
jne 0x44f104
lea eax, [esp + 0x14]
mov ebx, dword [esp + 0x50]
and dword [eax], 0
push eax
push edi
call dword [sym.imp.kernel32.dll_GetConsoleMode]
test eax, eax
je 0x44f200
mov eax, dword [esp + 0x58]
movzx eax, byte [eax + 4]
test eax, eax
je 0x44f254
cmp al, 4
jae 0x44f32d
mov cl, byte [ebx]
mov edx, ecx
and dl, 0xc0
cmp dl, 0x80
jne 0x44f2a9
mov ebx, dword [esp + 0x58]
mov byte [ebx + eax], cl
mov al, byte [ebx + 4]
inc al
mov byte [ebx + 4], al
movzx ecx, byte [ebx]
movzx ecx, byte [ecx + 0x483c28]
cmp cl, al
ja 0x44f31d
movzx eax, al
mov dword [esp + 0x10], ecx
cmp al, 5
jae 0x44f32d
lea ebp, [esp + 0x14]
mov edx, ebx
mov ecx, ebp
push eax
call fcn.0041bd04
pop eax
cmp dword [ebp], 0
mov byte [ebx + 4], 0
jne 0x44f2b1
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x1c], eax
jne 0x44f32d
lea ebx, [esp + 4]
mov edx, edi
mov ecx, ebx
push eax
push dword [esp + 0x1c]
call fcn.0044f37c
pop eax
pop ecx
cmp byte [ebx], 4
jne 0x44f30a
mov eax, dword [esp + 8]
jmp 0x44f317
lea eax, [esp + 0x2c]
mov ecx, 0x103
and dword [eax + 4], 0
mov dword [eax], ecx
push 0
push 0
push ebp
push ebx
push eax
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtWriteFile]
mov ecx, 0x103
cmp eax, ecx
jne 0x44f244
push 0xffffffffffffffff
push edi
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x2c]
cmp eax, 0x103
je 0x44f32f
test eax, eax
js 0x44f2c3
mov eax, dword [esp + 0x30]
mov dword [esi + 4], eax
jmp 0x44f10f
mov eax, 0x1000
lea ecx, [esp + 4]
mov edx, ebx
cmp ebp, eax
cmovb eax, ebp
push eax
call fcn.0041bd04
pop eax
lea eax, [esp + 4]
cmp dword [eax], 0
je 0x44f2d5
cmp dword [esp + 8], 0
je 0x44f2f0
mov eax, dword [esp + 8]
cmp eax, ebp
ja 0x44f32d
mov edx, ebx
lea ebx, [esp + 0x14]
mov ecx, ebx
push eax
call fcn.0041bd04
pop eax
cmp dword [ebx], 0
jne 0x44f32d
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
jmp 0x44f2dd
mov eax, dword [esp + 0x58]
mov byte [eax + 4], 0
mov dword [esi + 4], str.Windows_stdio_in_console_mode_does_not_support_writing_non_UTF_8_byte_sequences
mov dword [esi], 2
jmp 0x44f112
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
and dword [esi], 0
mov dword [esi + 4], eax
jmp 0x44f112
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0xc]
mov ecx, esi
mov edx, edi
push ebx
push eax
call fcn.0044f37c
add esp, 0x44
jmp 0x44f115
movzx eax, byte [ebx]
movzx ecx, byte [eax + 0x483c28]
cmp ecx, ebp
jbe 0x44f2b1
mov ecx, dword [esp + 0x58]
mov byte [ecx], al
mov byte [ecx + 4], 1
jmp 0x44f31d
mov ecx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp cl, 4
jne 0x44f329
cmp eax, dword [esp + 0x10]
jne 0x44f32d
mov dword [esi + 4], 1
jmp 0x44f10f
mov dword [esi], ecx
jmp 0x44f2cd
ud2
lea edx, [esp + 0x34]
mov eax, esp
mov dword [esp + 0x14], 0x4843a0
mov dword [esp + 0x18], 1
and dword [esp + 0x24], 0
lea esi, [esp + 4]
mov dword [esp + 0x1c], eax
and dword [edx], 0
and dword [esp + 0x20], 0
lea eax, [esp + 0x14]
mov byte [edx + 4], 0
mov ecx, esi
push eax
call fcn.0044f547
pop eax
mov ecx, dword [esi]
mov edx, dword [esi + 4]
call fcn.00425415
push 7
pop ecx
int 0x29
ud2