Function at 0x423ac2
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x1ae4
mov edi, edi
push ebp
mov ebp, esp
call fcn.0041dc00
mov eax, dword [0x43dfc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x1acc], eax
xor edi, edi
mov dword [ebp - 0x1ac8], edi
mov dword [ebp - 0x1ad0], edi
cmp dword [ebp + 0x10], edi
jne 0x423b03
xor eax, eax
jmp 0x4241b1
cmp eax, edi
jne 0x423b26
call fcn.0041deec
mov dword [eax], edi
call fcn.0041ded9
mov dword [eax], 0x16
call fcn.00421770
or eax, 0xffffffff
jmp 0x4241b1
mov edi, esi
mov eax, esi
push ebx
sar eax, 5
lea ebx, [eax*4 + 0x440660]
and edi, 0x1f
mov eax, dword [ebx]
shl edi, 6
mov cl, byte [eax + edi + 0x24]
mov dword [ebp - 0x1adc], ebx
add cl, cl
sar cl, 1
cmp cl, 2
mov byte [ebp - 0x1ac1], cl
je 0x423b5b
cmp cl, 1
jne 0x423b82
mov ecx, dword [ebp + 0x10]
not ecx
test cl, 1
jne 0x423b82
call fcn.0041deec
and dword [eax], 0
call fcn.0041ded9
mov dword [eax], 0x16
call fcn.00421770
jmp 0x42419f
test byte [eax + edi + 4], 0x20
je 0x423b98
push 2
push 0
push 0
push esi
call fcn.00424754
sub esp, 0xfffffff0
push esi
call fcn.00429747
test eax, eax
pop ecx
je 0x423e40
mov eax, dword [ebx]
test byte [edi + eax + 4], 0x80
je 0x423e40
call fcn.00420d9c
mov eax, dword [eax + 0x6c]
lea esi, [ebp - 0x1ae0]
xor ecx, ecx
cmp dword [eax + 0x14], ecx
sete cl
push esi
mov eax, dword [ebx]
push dword [edi + eax]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
xor ecx, ecx
cmp eax, ecx
je 0x423e42
cmp esi, ecx
je 0x423bf2
cmp byte [ebp - 0x1ac1], cl
je 0x423e42
call dword [sym.imp.KERNEL32.dll_GetConsoleCP]
mov esi, dword [ebp - 0x1acc]
mov dword [ebp - 0x1ae0], eax
xor eax, eax
mov dword [ebp - 0x1ad4], eax
cmp dword [ebp + 0x10], eax
jbe 0x424138
mov dword [ebp - 0x1ac0], eax
mov al, byte [ebp - 0x1ac1]
or al, al
jne 0x423d90
mov cl, byte [esi]
xor eax, eax
cmp cl, 0xa
sete al
mov ebx, dword [ebp - 0x1adc]
mov dword [ebp - 0x1ae4], eax
mov eax, dword [ebx]
add eax, edi
cmp dword [eax + 0x38], 0
je 0x423c5e
lea ebx, [ebp - 0xc]
mov dl, byte [eax + 0x34]
mov byte [ebp - 0xc], dl
mov byte [ebp - 0xb], cl
and dword [eax + 0x38], 0
push 2
push ebx
jmp 0x423ca9
movsx eax, cl
push eax
call fcn.00422cc5
pop ecx
test eax, eax
je 0x423ca6
mov ecx, dword [ebp - 0x1acc]
sub ecx, esi
add ecx, dword [ebp + 0x10]
xor eax, eax
inc eax
cmp ecx, eax
jbe 0x423e27
lea eax, [ebp - 0x1abc]
push 2
push esi
push eax
call fcn.00422c73
add esp, 0xc
cmp eax, 0xffffffff
je 0x42412f
inc esi
inc dword [ebp - 0x1ac0]
jmp 0x423cc1
push 1
push esi
lea eax, [ebp - 0x1abc]
push eax
call fcn.00422c73
sub esp, 0xfffffff4
cmp eax, 0xffffffff
je 0x42412f
xor eax, eax
inc esi
lea ecx, [ebp - 0x1abc]
push eax
lea ebx, [ebp - 0xc]
push eax
push 5
push ebx
push 1
push ecx
push eax
push dword [ebp - 0x1ae0]
inc dword [ebp - 0x1ac0]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
test ebx, ebx
je 0x42412f
push 0
lea eax, [ebp - 0x1ad4]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x1adc]
mov eax, dword [eax]
push dword [edi + eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
or eax, eax
je 0x424123
mov eax, dword [ebp - 0x1ac0]
mov ecx, dword [ebp - 0x1ad0]
add eax, ecx
mov dword [ebp - 0x1ac8], eax
cmp dword [ebp - 0x1ad4], ebx
jl 0x42412f
cmp dword [ebp - 0x1ae4], 0
je 0x423e13
push 0
lea ebx, [ebp - 0x1ad4]
push ebx
lea ebx, [ebp - 0xc]
push 1
push ebx
mov eax, dword [ebp - 0x1adc]
mov eax, dword [eax]
mov byte [ebp - 0xc], 0xd
push dword [edi + eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
or eax, eax
je 0x424123
cmp dword [ebp - 0x1ad4], 1
jl 0x42412f
inc dword [ebp - 0x1ad0]
inc dword [ebp - 0x1ac8]
jmp 0x423e13
cmp al, 1
je 0x423d98
cmp al, 2
jne 0x423db9
movzx ebx, word [esi]
xor ecx, ecx
cmp ebx, 0xa
sete cl
sub esi, 0xfffffffe
sub dword [ebp - 0x1ac0], 0xfffffffe
mov dword [ebp - 0x1abc], ebx
mov dword [ebp - 0x1ae4], ecx
cmp al, 1
je 0x423dc1
cmp al, 2
jne 0x423e13
push dword [ebp - 0x1abc]
call fcn.0042b5eb
pop ecx
cmp ax, word [ebp - 0x1abc]
jne 0x424123
sub dword [ebp - 0x1ac8], 0xfffffffe
cmp dword [ebp - 0x1ae4], 0
je 0x423e13
push 0xd
pop eax
push eax
mov dword [ebp - 0x1abc], eax
call fcn.0042b5eb
pop ecx
cmp ax, word [ebp - 0x1abc]
jne 0x424123
inc dword [ebp - 0x1ac8]
inc dword [ebp - 0x1ad0]
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 0x1ac0], eax
jb 0x423c1b
jmp 0x42412f
mov dl, byte [esi]
mov ecx, dword [ebx]
inc dword [ebp - 0x1ac8]
mov byte [edi + ecx + 0x34], dl
mov ecx, dword [ebx]
mov dword [edi + ecx + 0x38], eax
jmp 0x42412f
xor ecx, ecx
mov eax, dword [ebx]
test byte [eax + edi + 4], 0x80
je 0x4240f0
cmp byte [ebp - 0x1ac1], 0
mov dword [ebp - 0x1abc], ecx
jne 0x423f0a
mov esi, dword [ebp - 0x1acc]
cmp dword [ebp + 0x10], ecx
jbe 0x42416e
xor ebx, ebx
mov ecx, esi
sub ecx, dword [ebp - 0x1acc]
lea eax, [ebp - 0x1ab8]
cmp ecx, dword [ebp + 0x10]
jae 0x423eac
mov dl, byte [esi]
inc esi
inc ecx
cmp dl, 0xa
mov dword [ebp - 0x1ae0], esi
jne 0x423ea0
inc dword [ebp - 0x1ad0]
mov byte [eax], 0xd
inc eax
inc ebx
mov byte [eax], dl
inc eax
inc ebx
cmp ebx, 0x13ff
jb 0x423e81
push 0
mov ebx, eax
lea eax, [ebp - 0x1ab8]
sub ebx, eax
lea eax, [ebp - 0x1ad8]
push eax
push ebx
lea eax, [ebp - 0x1ab8]
push eax
mov eax, dword [ebp - 0x1adc]
mov eax, dword [eax]
push dword [edi + eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
or eax, eax
je 0x424123
mov eax, dword [ebp - 0x1ad8]
add dword [ebp - 0x1ac8], eax
cmp eax, ebx
jl 0x42412f
mov eax, esi
sub eax, dword [ebp - 0x1acc]
cmp eax, dword [ebp + 0x10]
jb 0x423e71
jmp 0x42412f
cmp byte [ebp - 0x1ac1], 2
jne 0x423fe4
mov ebx, dword [ebp - 0x1acc]
cmp dword [ebp + 0x10], ecx
jbe 0x42416e
mov ecx, ebx
lea eax, [ebp - 0x1ab8]
and dword [ebp - 0x1ac0], 0
sub ecx, dword [ebp - 0x1acc]
push 2
pop esi
cmp ecx, dword [ebp + 0x10]
jae 0x423f86
movzx edx, word [ebx]
add ebx, esi
mov dword [ebp - 0x1ae0], ebx
add ecx, esi
cmp edx, 0xa
jne 0x423f6f
add dword [ebp - 0x1ad0], esi
push 0xd
pop ebx
mov word [eax], bx
mov ebx, dword [ebp - 0x1ae0]
add eax, esi
add dword [ebp - 0x1ac0], esi
add dword [ebp - 0x1ac0], esi
mov word [eax], dx
add eax, esi
cmp dword [ebp - 0x1ac0], 0x13fe
jb 0x423f3e
push 0
mov esi, eax
lea eax, [ebp - 0x1ab8]
sub esi, eax
lea eax, [ebp - 0x1ad8]
push eax
push esi
lea eax, [ebp - 0x1ab8]
push eax
mov eax, dword [ebp - 0x1adc]
mov eax, dword [eax]
push dword [edi + eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
or eax, eax
je 0x424123
mov eax, dword [ebp - 0x1ad8]
add dword [ebp - 0x1ac8], eax
cmp eax, esi
jl 0x42412f
mov eax, ebx
sub eax, dword [ebp - 0x1acc]
cmp eax, dword [ebp + 0x10]
jb 0x423f26
jmp 0x42412f
mov esi, dword [ebp - 0x1acc]
mov dword [ebp - 0x1ad4], esi
cmp dword [ebp + 0x10], ecx
jbe 0x42416e
lea eax, [ebp - 0x6b8]
mov ebx, dword [ebp - 0x1ad4]
and dword [ebp - 0x1ac0], 0
sub ebx, dword [ebp - 0x1acc]
push 2
pop esi
cmp ebx, dword [ebp + 0x10]
jae 0x424055
mov edx, dword [ebp - 0x1ad4]
movzx edx, word [edx]
add dword [ebp - 0x1ad4], esi
add ebx, esi
cmp edx, 0xa
jne 0x42403e
push 0xd
pop ecx
mov word [eax], cx
add eax, esi
add dword [ebp - 0x1ac0], esi
add dword [ebp - 0x1ac0], esi
mov word [eax], dx
add eax, esi
cmp dword [ebp - 0x1ac0], 0x6a8
jb 0x424015
xor ebx, ebx
lea ecx, [ebp - 0x6b8]
lea esi, [ebp - 0x1410]
sub eax, ecx
push ebx
push ebx
push 0xd55
push esi
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, ecx
push eax
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
cmp esi, ebx
je 0x424123
lea eax, [ebp - 0x1ad8]
push 0
push eax
mov eax, esi
sub eax, ebx
push eax
lea eax, [ebp + ebx - 0x1410]
push eax
mov eax, dword [ebp - 0x1adc]
mov eax, dword [eax]
push dword [edi + eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
or eax, eax
je 0x4240c3
add ebx, dword [ebp - 0x1ad8]
cmp esi, ebx
jg 0x42408c
jmp 0x4240cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1abc], eax
cmp esi, ebx
jg 0x42412f
mov eax, dword [ebp - 0x1ad4]
sub eax, dword [ebp - 0x1acc]
mov dword [ebp - 0x1ac8], eax
cmp eax, dword [ebp + 0x10]
jb 0x423ff9
jmp 0x42412f
push ecx
lea ecx, [ebp - 0x1ad8]
push ecx
push dword [ebp + 0x10]
push dword [ebp - 0x1acc]
push dword [eax + edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x424123
mov eax, dword [ebp - 0x1ad8]
and dword [ebp - 0x1abc], 0
mov dword [ebp - 0x1ac8], eax
jmp 0x42412f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1abc], eax
cmp dword [ebp - 0x1ac8], 0
jne 0x4241a4
cmp dword [ebp - 0x1abc], 0
je 0x42416e
push 5
pop edi
cmp dword [ebp - 0x1abc], edi
jne 0x424160
call fcn.0041ded9
mov dword [eax], 9
call fcn.0041deec
mov dword [eax], edi
jmp 0x42419f
push dword [ebp - 0x1abc]
call fcn.0041deff
pop edx
jmp 0x42419f
mov eax, dword [ebp - 0x1adc]
mov eax, dword [eax]
test byte [edi + eax + 4], 0x40
je 0x42418c
mov eax, dword [ebp - 0x1acc]
cmp byte [eax], 0x1a
jne 0x42418c
xor eax, eax
jmp 0x4241b0
call fcn.0041ded9
mov dword [eax], 0x1c
call fcn.0041deec
and dword [eax], 0
or eax, 0xffffffff
jmp 0x4241b0
mov eax, dword [ebp - 0x1ac8]
sub eax, dword [ebp - 0x1ad0]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041b771
leave
ret