Function at 0x42a194
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 0x42a1bb
lea ebx, [esp + 0x14]
mov ecx, ebx
call fcn.0042a410
cmp byte [ebx], 4
jne 0x42a1c7
mov edi, dword [esp + 0x18]
jmp 0x42a1d7
and dword [esi + 4], 0
mov byte [esi], 4
jmp 0x42a368
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
cmp al, 4
jne 0x42a2e8
and dword [esp + 0x14], 0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
je 0x42a295
mov dword [esp], edi
mov edi, dword [esp + 0x58]
mov ebx, dword [esp + 0x50]
movzx eax, byte [edi + 4]
test eax, eax
je 0x42a2ef
cmp al, 4
jae 0x42a3c3
mov cl, byte [ebx]
mov edx, ecx
and dl, 0xc0
cmp dl, 0x80
jne 0x42a344
mov byte [edi + eax], cl
mov al, byte [edi + 4]
inc al
mov byte [edi + 4], al
movzx ecx, byte [edi]
movzx ebx, byte [ecx + 0x454ad8]
cmp bl, al
ja 0x42a3b0
movzx eax, al
cmp al, 5
jae 0x42a3c3
lea ebp, [esp + 0x14]
mov edx, edi
mov ecx, ebp
push eax
call fcn.00413d27
pop eax
cmp dword [ebp], 0
mov byte [edi + 4], 0
jne 0x42a348
cmp dword [esp + 0x1c], ebx
jne 0x42a3c3
mov edx, dword [esp]
mov eax, ebx
lea ebx, [esp + 8]
mov edi, eax
mov ecx, ebx
push eax
push dword [esp + 0x1c]
call fcn.0042a452
pop eax
pop ecx
cmp byte [ebx], 4
jne 0x42a39f
mov eax, dword [esp + 0xc]
jmp 0x42a3ac
lea eax, [esp + 0x2c]
mov ecx, 0x103
and dword [eax + 4], 0
mov dword [eax], ecx
push 0
push 0
push ebp
push dword [esp + 0x5c]
push eax
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtWriteFile]
mov ecx, 0x103
cmp eax, ecx
jne 0x42a2dc
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x2c]
cmp eax, 0x103
je 0x42a3c5
test eax, eax
js 0x42a357
mov eax, dword [esp + 0x30]
mov bl, 4
jmp 0x42a360
mov dword [esi + 4], edi
mov dword [esi], eax
jmp 0x42a368
mov eax, 0x1000
lea ecx, [esp + 8]
mov edx, ebx
cmp ebp, eax
cmovb eax, ebp
push eax
call fcn.00413d27
pop eax
lea eax, [esp + 8]
cmp dword [eax], 0
je 0x42a370
cmp dword [esp + 0xc], 0
je 0x42a389
mov eax, dword [esp + 0xc]
cmp eax, ebp
ja 0x42a3c3
mov edx, ebx
lea ebx, [esp + 0x14]
mov ecx, ebx
push eax
call fcn.00413d27
pop eax
cmp dword [ebx], 0
jne 0x42a3c3
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
jmp 0x42a378
mov byte [edi + 4], 0
mov dword [esi + 4], 0x454ff0
mov dword [esi], 2
jmp 0x42a368
xor ebx, ebx
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
movzx ecx, bl
mov dword [esi + 4], eax
mov dword [esi], ecx
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
mov edx, dword [esp]
mov ecx, esi
push ebx
push eax
call fcn.0042a452
add esp, 0x44
jmp 0x42a36b
movzx eax, byte [ebx]
movzx ecx, byte [eax + 0x454ad8]
cmp ecx, ebp
jbe 0x42a348
mov byte [edi], al
mov byte [edi + 4], 1
jmp 0x42a3b0
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0xc]
cmp cl, 4
jne 0x42a3bc
cmp eax, edi
jne 0x42a3c3
mov dword [esi + 4], 1
jmp 0x42a1bf
mov dword [esi], ecx
mov dword [esi + 4], eax
jmp 0x42a368
ud2
lea edx, [esp + 0x34]
lea eax, [esp + 4]
mov dword [esp + 0x14], 0x454ed4
mov dword [esp + 0x18], 1
and dword [esp + 0x24], 0
lea esi, [esp + 8]
and dword [edx], 0
mov dword [esp + 0x1c], eax
and dword [esp + 0x20], 0
mov byte [edx + 4], 0
mov ecx, esi
push ebx
call fcn.0042a647
pop eax
mov ecx, dword [esi]
mov edx, dword [esi + 4]
call fcn.0042a60e
push 7
pop ecx
int 0x29
ud2