Function at 0x4282bf
Capabilities:
Write file on windows

Disassembly:
mov esi, esi
mov eax, 0x1ae4
push ebp
mov ebp, esp
call fcn.00432700
mov eax, dword [0x441480]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
mov dword [ebp - 0x1acc], eax
xor esi, esi
mov dword [ebp - 0x1ac8], esi
mov dword [ebp - 0x1ad0], esi
cmp dword [ebp + 0x10], esi
jne 0x428300
xor eax, eax
jmp 0x4289ae
cmp eax, esi
jne 0x428323
call fcn.00426e1d
mov dword [eax], esi
call fcn.00426e0a
mov dword [eax], 0x16
call fcn.00426db8
or eax, 0xffffffff
jmp 0x4289ae
push ebx
mov esi, edi
mov eax, edi
sar eax, 5
lea ebx, [eax*4 + 0x444b80]
mov eax, dword [ebx]
and esi, 0x1f
shl esi, 6
mov cl, byte [eax + esi + 0x24]
mov dword [ebp - 0x1adc], ebx
add cl, cl
sar cl, 1
mov byte [ebp - 0x1ac1], cl
cmp cl, 2
je 0x428358
cmp cl, 1
jne 0x42837f
mov ecx, dword [ebp + 0x10]
not ecx
test cl, 1
jne 0x42837f
call fcn.00426e1d
and dword [eax], 0
call fcn.00426e0a
mov dword [eax], 0x16
call fcn.00426db8
jmp 0x42899c
test byte [eax + esi + 4], 0x20
je 0x428395
push 2
push 0
push 0
push edi
call fcn.00428150
sub esp, 0xfffffff0
push edi
call fcn.00431da4
pop ecx
test eax, eax
je 0x42863d
mov eax, dword [ebx]
test byte [esi + eax + 4], 0x80
je 0x42863d
call fcn.00427003
mov eax, dword [eax + 0x6c]
xor ecx, ecx
cmp dword [eax + 0x14], ecx
lea eax, [ebp - 0x1ae0]
push eax
sete cl
mov eax, dword [ebx]
push dword [esi + eax]
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
xor ecx, ecx
cmp eax, ecx
je 0x42863f
cmp edi, ecx
je 0x4283ef
cmp byte [ebp - 0x1ac1], cl
je 0x42863f
call dword [sym.imp.KERNEL32.dll_GetConsoleCP]
mov edi, dword [ebp - 0x1acc]
mov dword [ebp - 0x1ae0], eax
xor eax, eax
mov dword [ebp - 0x1ad4], eax
cmp dword [ebp + 0x10], eax
jbe 0x428935
mov dword [ebp - 0x1ac0], eax
mov al, byte [ebp - 0x1ac1]
or al, al
jne 0x42858d
mov cl, byte [edi]
mov ebx, dword [ebp - 0x1adc]
xor eax, eax
cmp cl, 0xa
sete al
mov dword [ebp - 0x1ae4], eax
mov eax, dword [ebx]
add eax, esi
cmp dword [eax + 0x38], 0
je 0x42845b
mov dl, byte [eax + 0x34]
mov byte [ebp - 0xc], dl
mov byte [ebp - 0xb], cl
and dword [eax + 0x38], 0
lea eax, [ebp - 0xc]
push 2
push eax
jmp 0x4284a6
movsx eax, cl
push eax
call fcn.00431fba
pop ecx
test eax, eax
je 0x4284a3
mov ecx, dword [ebp - 0x1acc]
sub ecx, edi
add ecx, dword [ebp + 0x10]
xor eax, eax
inc eax
cmp ecx, eax
jbe 0x428624
lea eax, [ebp - 0x1abc]
push 2
push edi
push eax
call fcn.00432c52
add esp, 0xc
cmp eax, 0xffffffff
je 0x42892c
inc edi
inc dword [ebp - 0x1ac0]
jmp 0x4284be
push 1
push edi
lea eax, [ebp - 0x1abc]
push eax
call fcn.00432c52
add esp, 0xc
cmp eax, 0xffffffff
je 0x42892c
lea ebx, [ebp - 0xc]
lea ecx, [ebp - 0x1abc]
xor eax, eax
push eax
push eax
inc edi
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 0x42892c
lea eax, [ebp - 0x1ad4]
push 0
push eax
lea eax, [ebp - 0xc]
push ebx
push eax
mov eax, dword [ebp - 0x1adc]
mov eax, dword [eax]
push dword [esi + eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x428920
mov ecx, dword [ebp - 0x1ad0]
mov eax, dword [ebp - 0x1ac0]
add eax, ecx
mov dword [ebp - 0x1ac8], eax
cmp dword [ebp - 0x1ad4], ebx
jl 0x42892c
cmp dword [ebp - 0x1ae4], 0
je 0x428610
push 0
lea ebx, [ebp - 0x1ad4]
push ebx
lea eax, [ebp - 0xc]
push 1
push eax
mov eax, dword [ebp - 0x1adc]
mov eax, dword [eax]
mov byte [ebp - 0xc], 0xd
push dword [esi + eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x428920
cmp dword [ebp - 0x1ad4], 1
jl 0x42892c
inc dword [ebp - 0x1ad0]
inc dword [ebp - 0x1ac8]
jmp 0x428610
cmp al, 1
je 0x428595
cmp al, 2
jne 0x4285b6
movzx ebx, word [edi]
xor ecx, ecx
cmp ebx, 0xa
sete cl
add edi, 2
sub dword [ebp - 0x1ac0], 0xfffffffe
mov dword [ebp - 0x1abc], ebx
mov dword [ebp - 0x1ae4], ecx
cmp al, 1
je 0x4285be
cmp al, 2
jne 0x428610
push dword [ebp - 0x1abc]
call fcn.00432afa
pop ecx
cmp ax, word [ebp - 0x1abc]
jne 0x428920
sub dword [ebp - 0x1ac8], 0xfffffffe
cmp dword [ebp - 0x1ae4], 0
je 0x428610
push 0xd
pop eax
push eax
mov dword [ebp - 0x1abc], eax
call fcn.00432afa
pop ecx
cmp ax, word [ebp - 0x1abc]
jne 0x428920
inc dword [ebp - 0x1ac8]
inc dword [ebp - 0x1ad0]
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 0x1ac0], eax
jb 0x428418
jmp 0x42892c
mov ecx, dword [ebx]
mov dl, byte [edi]
inc dword [ebp - 0x1ac8]
mov byte [esi + ecx + 0x34], dl
mov ecx, dword [ebx]
mov dword [esi + ecx + 0x38], eax
jmp 0x42892c
xor ecx, ecx
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x80
je 0x4288ed
cmp byte [ebp - 0x1ac1], 0
mov dword [ebp - 0x1abc], ecx
jne 0x428707
mov ebx, dword [ebp - 0x1acc]
cmp dword [ebp + 0x10], ecx
jbe 0x42896b
lea eax, [ebp - 0x1ab8]
xor edi, edi
mov ecx, ebx
sub ecx, dword [ebp - 0x1acc]
cmp ecx, dword [ebp + 0x10]
jae 0x4286a9
mov dl, byte [ebx]
inc ebx
mov dword [ebp - 0x1ae0], ebx
inc ecx
cmp dl, 0xa
jne 0x42869d
inc dword [ebp - 0x1ad0]
mov byte [eax], 0xd
inc eax
inc edi
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x13ff
jb 0x42867e
mov edi, eax
push 0
lea eax, [ebp - 0x1ab8]
sub edi, eax
lea eax, [ebp - 0x1ad8]
push eax
lea eax, [ebp - 0x1ab8]
push edi
push eax
mov eax, dword [ebp - 0x1adc]
mov eax, dword [eax]
push dword [esi + eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x428920
mov eax, dword [ebp - 0x1ad8]
add dword [ebp - 0x1ac8], eax
cmp eax, edi
jl 0x42892c
mov eax, ebx
sub eax, dword [ebp - 0x1acc]
cmp eax, dword [ebp + 0x10]
jb 0x42866e
jmp 0x42892c
cmp byte [ebp - 0x1ac1], 2
jne 0x4287e1
mov ebx, dword [ebp - 0x1acc]
cmp dword [ebp + 0x10], ecx
jbe 0x42896b
and dword [ebp - 0x1ac0], 0
lea eax, [ebp - 0x1ab8]
mov ecx, ebx
sub ecx, dword [ebp - 0x1acc]
push 2
pop edi
cmp ecx, dword [ebp + 0x10]
jae 0x428783
movzx edx, word [ebx]
add ebx, edi
add ecx, edi
cmp edx, 0xa
mov dword [ebp - 0x1ae0], ebx
jne 0x42876c
add dword [ebp - 0x1ad0], edi
push 0xd
pop ebx
mov word [eax], bx
mov ebx, dword [ebp - 0x1ae0]
add eax, edi
add dword [ebp - 0x1ac0], edi
add dword [ebp - 0x1ac0], edi
mov word [eax], dx
add eax, edi
cmp dword [ebp - 0x1ac0], 0x13fe
jb 0x42873b
push 0
mov edi, eax
lea eax, [ebp - 0x1ab8]
sub edi, eax
lea eax, [ebp - 0x1ad8]
push eax
push edi
lea eax, [ebp - 0x1ab8]
push eax
mov eax, dword [ebp - 0x1adc]
mov eax, dword [eax]
push dword [esi + eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x428920
mov eax, dword [ebp - 0x1ad8]
add dword [ebp - 0x1ac8], eax
cmp eax, edi
jl 0x42892c
mov eax, ebx
sub eax, dword [ebp - 0x1acc]
cmp eax, dword [ebp + 0x10]
jb 0x428723
jmp 0x42892c
mov eax, dword [ebp - 0x1acc]
mov dword [ebp - 0x1ad4], eax
cmp dword [ebp + 0x10], ecx
jbe 0x42896b
mov ecx, dword [ebp - 0x1ad4]
lea eax, [ebp - 0x6b8]
and dword [ebp - 0x1ac0], 0
sub ecx, dword [ebp - 0x1acc]
push 2
pop edi
cmp ecx, dword [ebp + 0x10]
jae 0x428852
mov ebx, dword [ebp - 0x1ad4]
movzx ebx, word [ebx]
add dword [ebp - 0x1ad4], edi
add ecx, edi
cmp ebx, 0xa
jne 0x42883b
push 0xd
pop edx
mov word [eax], dx
add eax, edi
add dword [ebp - 0x1ac0], edi
add dword [ebp - 0x1ac0], edi
mov word [eax], bx
add eax, edi
cmp dword [ebp - 0x1ac0], 0x6a8
jb 0x428812
lea ebx, [ebp - 0x1410]
xor edi, edi
push edi
push edi
lea ecx, [ebp - 0x6b8]
sub eax, ecx
push 0xd55
push ebx
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, ecx
push eax
push edi
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
cmp ebx, edi
je 0x428920
push 0
lea eax, [ebp - 0x1ad8]
push eax
mov eax, ebx
sub eax, edi
push eax
lea eax, [ebp + edi - 0x1410]
push eax
mov eax, dword [ebp - 0x1adc]
mov eax, dword [eax]
push dword [esi + eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4288c0
add edi, dword [ebp - 0x1ad8]
cmp ebx, edi
jg 0x428889
jmp 0x4288cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1abc], eax
cmp ebx, edi
jg 0x42892c
mov eax, dword [ebp - 0x1ad4]
sub eax, dword [ebp - 0x1acc]
mov dword [ebp - 0x1ac8], eax
cmp eax, dword [ebp + 0x10]
jb 0x4287f6
jmp 0x42892c
push ecx
lea ecx, [ebp - 0x1ad8]
push ecx
push dword [ebp + 0x10]
push dword [ebp - 0x1acc]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x428920
mov eax, dword [ebp - 0x1ad8]
and dword [ebp - 0x1abc], 0
mov dword [ebp - 0x1ac8], eax
jmp 0x42892c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1abc], eax
cmp dword [ebp - 0x1ac8], 0
jne 0x4289a1
cmp dword [ebp - 0x1abc], 0
je 0x42896b
push 5
pop esi
cmp dword [ebp - 0x1abc], esi
jne 0x42895d
call fcn.00426e0a
mov dword [eax], 9
call fcn.00426e1d
mov dword [eax], esi
jmp 0x42899c
push dword [ebp - 0x1abc]
call fcn.00426e30
pop esi
jmp 0x42899c
mov eax, dword [ebp - 0x1adc]
mov eax, dword [eax]
test byte [esi + eax + 4], 0x40
je 0x428989
mov eax, dword [ebp - 0x1acc]
cmp byte [eax], 0x1a
jne 0x428989
xor eax, eax
jmp 0x4289ad
call fcn.00426e0a
mov dword [eax], 0x1c
call fcn.00426e1d
and dword [eax], 0
or eax, 0xffffffff
jmp 0x4289ad
mov eax, dword [ebp - 0x1ac8]
sub eax, dword [ebp - 0x1ad0]
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00420bc6
leave
ret