Function at 0x42dbb5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1af0
call fcn.00431b90
mov eax, dword [0x4bfd50]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x1abc], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push esi
xor esi, esi
mov dword [ebp - 0x1ac8], eax
push edi
xor edi, edi
mov dword [ebp - 0x1ad0], ecx
mov dword [ebp - 0x1ac0], esi
cmp dword [ebp + 0x10], esi
jne 0x42dbfd
sub eax, eax
jmp 0x42e40a
test ecx, ecx
jne 0x42dc20
call fcn.00428d34
and dword [eax], esi
call fcn.00428d68
mov dword [eax], 0x16
call fcn.00428ff6
or eax, 0xffffffff
jmp 0x42e40a
push eax
pop edx
push eax
pop ecx
sar edx, 5
and ecx, 0x1f
shl ecx, 6
mov dword [ebp - 0x1ad8], edx
push ebx
mov edx, dword [edx*4 + 0x4c49e0]
mov dword [ebp - 0x1adc], ecx
mov bl, byte [ecx + edx + 0x24]
add bl, bl
sar bl, 1
cmp bl, 2
je 0x42dc53
cmp bl, 1
jne 0x42dc7e
mov eax, dword [ebp + 0x10]
not eax
test al, 1
jne 0x42dc78
call fcn.00428d34
and dword [eax], esi
call fcn.00428d68
mov dword [eax], 0x16
call fcn.00428ff6
jmp 0x42e400
mov eax, dword [ebp - 0x1ac8]
test byte [ecx + edx + 4], 0x20
je 0x42dc94
push 2
push 0
push 0
push eax
call fcn.00431b11
add esp, 0x10
push dword [ebp - 0x1ac8]
call fcn.00435ebb
pop ecx
test eax, eax
je 0x42dff8
mov eax, dword [ebp - 0x1ad8]
mov ecx, dword [ebp - 0x1adc]
mov eax, dword [eax*4 + 0x4c49e0]
test byte [ecx + eax + 4], 0x80
je 0x42dff8
call fcn.00429bec
xor ecx, ecx
mov eax, dword [eax + 0x6c]
cmp dword [eax + 0xa8], ecx
lea eax, [ebp - 0x1ae8]
push eax
mov eax, dword [ebp - 0x1ad8]
sete cl
mov dword [ebp - 0x1ac4], ecx
mov ecx, dword [ebp - 0x1adc]
mov eax, dword [eax*4 + 0x4c49e0]
push dword [ecx + eax]
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
je 0x42dff8
cmp dword [ebp - 0x1ac4], esi
je 0x42dd1a
test bl, bl
je 0x42dff8
call dword [sym.imp.KERNEL32.dll_GetConsoleCP]
mov edx, dword [ebp - 0x1ad0]
xor ecx, ecx
and dword [ebp - 0x1ac8], ecx
mov dword [ebp - 0x1af0], eax
mov dword [ebp - 0x1acc], ecx
mov dword [ebp - 0x1ad4], edx
cmp dword [ebp + 0x10], ecx
jbe 0x42e3ca
mov eax, dword [ebp - 0x1ad4]
sub edx, edx
mov dword [ebp - 0x1ac0], edx
mov dword [ebp - 0x1aec], 0xa
and dword [ebp - 0x1ac4], edi
test bl, bl
jne 0x42df1d
mov dl, byte [eax]
sub eax, eax
mov ecx, dword [ebp - 0x1adc]
cmp dl, 0xa
sete al
mov dword [ebp - 0x1ae8], eax
mov eax, dword [ebp - 0x1ad8]
mov eax, dword [eax*4 + 0x4c49e0]
mov dword [ebp - 0x1ac4], eax
cmp dword [ecx + eax + 0x38], edi
je 0x42ddba
mov al, byte [ecx + eax + 0x34]
mov byte [ebp - 0xc], al
mov eax, dword [ebp - 0x1ac4]
mov byte [ebp - 0xb], dl
push 2
and dword [ecx + eax + 0x38], edi
lea eax, [ebp - 0xc]
push eax
jmp 0x42de14
movsx eax, dl
push eax
call fcn.00423835
pop ecx
or eax, eax
je 0x42de0c
mov eax, dword [ebp - 0x1ad0]
mov edx, dword [ebp - 0x1ad4]
sub eax, edx
add eax, dword [ebp + 0x10]
cmp eax, 1
jbe 0x42dfbd
push 2
push edx
lea eax, [ebp - 0x1acc]
push eax
call fcn.0043650a
add esp, 0xc
cmp eax, 0xffffffff
je 0x42e102
mov eax, dword [ebp - 0x1ad4]
inc eax
inc dword [ebp - 0x1ac0]
jmp 0x42de32
push 1
push dword [ebp - 0x1ad4]
lea eax, [ebp - 0x1acc]
push eax
call fcn.0043650a
add esp, 0xc
cmp eax, 0xffffffff
je 0x42e102
mov eax, dword [ebp - 0x1ad4]
sub ecx, ecx
inc eax
inc dword [ebp - 0x1ac0]
push ecx
push ecx
push 5
mov dword [ebp - 0x1ad4], eax
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x1acc]
push eax
push ecx
push dword [ebp - 0x1af0]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1ac4], eax
or eax, eax
je 0x42e102
push 0
lea ecx, [ebp - 0x1ac8]
push ecx
mov ecx, dword [ebp - 0x1adc]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x1ad8]
mov eax, dword [eax*4 + 0x4c49e0]
push dword [ecx + eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42dfeb
mov esi, dword [ebp - 0x1ac0]
mov ecx, dword [ebp - 0x1abc]
add esi, ecx
mov eax, dword [ebp - 0x1ac4]
cmp dword [ebp - 0x1ac8], eax
jl 0x42e108
cmp dword [ebp - 0x1ae8], edi
je 0x42df12
mov ecx, dword [ebp - 0x1adc]
lea eax, [ebp - 0x1ac8]
push 0
push eax
push 1
lea eax, [ebp - 0xc]
mov byte [ebp - 0xc], 0xd
push eax
mov eax, dword [ebp - 0x1ad8]
mov eax, dword [eax*4 + 0x4c49e0]
push dword [ecx + eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42dfeb
cmp dword [ebp - 0x1ac8], 1
jl 0x42e102
inc dword [ebp - 0x1abc]
inc esi
mov ecx, dword [ebp - 0x1acc]
jmp 0x42dfa3
cmp bl, 1
je 0x42df27
cmp bl, 2
jne 0x42df5a
movzx ecx, word [eax]
xor edx, edx
cmp cx, word [ebp - 0x1aec]
mov dword [ebp - 0x1acc], ecx
sete dl
add eax, 2
mov dword [ebp - 0x1ac4], edx
mov edx, dword [ebp - 0x1ac0]
add edx, 2
mov dword [ebp - 0x1ad4], eax
mov dword [ebp - 0x1ac0], edx
cmp bl, 1
je 0x42df64
cmp bl, 2
jne 0x42dfaf
push ecx
call fcn.00437cae
pop ecx
mov ecx, dword [ebp - 0x1acc]
cmp ax, cx
jne 0x42dfeb
add esi, 2
cmp dword [ebp - 0x1ac4], edi
je 0x42dfa3
push 0xd
pop eax
push eax
mov dword [ebp - 0x1acc], eax
call fcn.00437cae
pop ecx
mov ecx, dword [ebp - 0x1acc]
cmp ax, cx
jne 0x42dfeb
inc esi
inc dword [ebp - 0x1abc]
mov edx, dword [ebp - 0x1ac0]
mov eax, dword [ebp - 0x1ad4]
cmp edx, dword [ebp + 0x10]
jb 0x42dd61
jmp 0x42e102
mov ebx, dword [ebp - 0x1ad8]
inc esi
mov al, byte [edx]
mov edx, dword [ebp - 0x1adc]
mov ecx, dword [ebx*4 + 0x4c49e0]
mov byte [edx + ecx + 0x34], al
mov eax, dword [ebx*4 + 0x4c49e0]
mov dword [edx + eax + 0x38], 1
jmp 0x42e102
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x42e102
mov eax, dword [ebp - 0x1ad8]
mov ecx, dword [eax*4 + 0x4c49e0]
mov eax, dword [ebp - 0x1adc]
test byte [eax + ecx + 4], 0x80
je 0x42e38b
mov edx, dword [ebp - 0x1ad0]
sub edi, edi
mov dword [ebp - 0x1acc], edi
test bl, bl
jne 0x42e13a
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x1ac8], edx
test ebx, ebx
je 0x42e3ca
sub ecx, ecx
lea edi, [ebp - 0x140c]
mov eax, edx
mov dword [ebp - 0x1ac4], ecx
sub eax, dword [ebp - 0x1ad0]
cmp eax, ebx
jae 0x42e09b
mov cl, byte [edx]
inc edx
inc eax
mov byte [ebp - 0x1ae1], cl
cmp cl, 0xa
mov dword [ebp - 0x1ac8], edx
mov ecx, dword [ebp - 0x1ac4]
jne 0x42e07d
inc dword [ebp - 0x1abc]
mov byte [edi], 0xd
inc edi
inc ecx
mov dl, byte [ebp - 0x1ae1]
mov byte [edi], dl
inc edi
mov edx, dword [ebp - 0x1ac8]
inc ecx
mov dword [ebp - 0x1ac4], ecx
cmp ecx, 0x13ff
jb 0x42e053
mov ecx, dword [ebp - 0x1adc]
lea eax, [ebp - 0x140c]
sub edi, eax
lea eax, [ebp - 0x1ae0]
push 0
push eax
push edi
lea eax, [ebp - 0x140c]
push eax
mov eax, dword [ebp - 0x1ad8]
mov eax, dword [eax*4 + 0x4c49e0]
push dword [ecx + eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42dfeb
add esi, dword [ebp - 0x1ae0]
cmp dword [ebp - 0x1ae0], edi
jl 0x42e0fc
mov edx, dword [ebp - 0x1ac8]
mov eax, edx
sub eax, dword [ebp - 0x1ad0]
cmp eax, ebx
jb 0x42e03d
mov edi, dword [ebp - 0x1acc]
mov ecx, dword [ebp - 0x1abc]
or esi, esi
jne 0x42e405
test edi, edi
je 0x42e3c4
push 5
pop ebx
cmp edi, ebx
jne 0x42e3bb
call fcn.00428d68
mov dword [eax], 9
call fcn.00428d34
mov dword [eax], ebx
jmp 0x42e400
mov ecx, edx
cmp bl, 2
jne 0x42e22f
cmp dword [ebp + 0x10], esi
jbe 0x42e3ca
mov dword [ebp - 0x1aec], 0xa
and dword [ebp - 0x1ae8], 0
lea ebx, [ebp - 0x140c]
mov eax, ecx
push 0xd
sub eax, edx
mov edx, dword [ebp - 0x1ae8]
pop esi
cmp eax, dword [ebp + 0x10]
jae 0x42e1aa
movzx edi, word [ecx]
add eax, 2
add ecx, 2
cmp di, word [ebp - 0x1aec]
jne 0x42e199
add dword [ebp - 0x1abc], 2
mov word [ebx], si
add ebx, 2
add edx, 2
mov word [ebx], di
add edx, 2
add ebx, 2
cmp edx, 0x13fe
jb 0x42e172
lea eax, [ebp - 0x140c]
mov dword [ebp - 0x1ac4], ecx
mov ecx, dword [ebp - 0x1adc]
sub ebx, eax
push 0
lea eax, [ebp - 0x1ae0]
push eax
push ebx
lea eax, [ebp - 0x140c]
push eax
mov eax, dword [ebp - 0x1ad8]
mov eax, dword [eax*4 + 0x4c49e0]
push dword [ecx + eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, dword [ebp - 0x1ac0]
mov edi, dword [ebp - 0x1acc]
or eax, eax
je 0x42dfeb
add esi, dword [ebp - 0x1ae0]
mov dword [ebp - 0x1ac0], esi
cmp dword [ebp - 0x1ae0], ebx
jl 0x42e102
mov ecx, dword [ebp - 0x1ac4]
mov eax, ecx
mov edx, dword [ebp - 0x1ad0]
sub eax, edx
cmp eax, dword [ebp + 0x10]
jb 0x42e158
jmp 0x42e102
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x1ac8], ecx
or ebx, ebx
je 0x42e3ca
mov dword [ebp - 0x1aec], 0xa
and dword [ebp - 0x1ae8], 0
lea eax, [ebp - 0x1ab8]
mov edi, dword [ebp - 0x1ac8]
sub ecx, edx
mov edx, dword [ebp - 0x1ae8]
cmp ecx, ebx
jae 0x42e2a4
movzx esi, word [edi]
add ecx, 2
add edi, 2
mov dword [ebp - 0x1ac8], edi
cmp si, word [ebp - 0x1aec]
jne 0x42e293
push 0xd
pop edi
mov word [eax], di
add eax, 2
mov edi, dword [ebp - 0x1ac8]
add edx, 2
mov word [eax], si
add edx, 2
add eax, 2
cmp edx, 0x6a8
jb 0x42e265
xor esi, esi
lea ecx, [ebp - 0xd64]
push esi
push esi
push 0xd55
push ecx
lea ecx, [ebp - 0x1ab8]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
push eax
push ecx
pop eax
push eax
push esi
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, dword [ebp - 0x1ac0]
mov edi, dword [ebp - 0x1acc]
mov dword [ebp - 0x1ac4], eax
test eax, eax
je 0x42dfeb
xor ecx, ecx
mov dword [ebp - 0x1ac0], ecx
push 0
sub eax, ecx
lea edx, [ebp - 0x1ae0]
push edx
push eax
lea eax, [ebp - 0xd64]
add eax, ecx
mov ecx, dword [ebp - 0x1adc]
push eax
mov eax, dword [ebp - 0x1ad8]
mov eax, dword [eax*4 + 0x4c49e0]
push dword [ecx + eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
or eax, eax
je 0x42e346
mov ecx, dword [ebp - 0x1ac0]
add ecx, dword [ebp - 0x1ae0]
mov eax, dword [ebp - 0x1ac4]
mov dword [ebp - 0x1ac0], ecx
cmp eax, ecx
jg 0x42e2f3
jmp 0x42e360
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x1ac0]
mov edi, eax
mov eax, dword [ebp - 0x1ac4]
mov dword [ebp - 0x1acc], edi
cmp eax, ecx
jg 0x42e102
mov ecx, dword [ebp - 0x1ac8]
mov esi, ecx
mov edx, dword [ebp - 0x1ad0]
sub esi, edx
mov dword [ebp - 0x1ac0], esi
cmp esi, ebx
jb 0x42e24a
jmp 0x42e102
push 0
lea edx, [ebp - 0x1ae0]
push edx
push dword [ebp + 0x10]
push dword [ebp - 0x1ad0]
push dword [eax + ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
or eax, eax
je 0x42dfeb
mov esi, dword [ebp - 0x1ae0]
sub edi, edi
jmp 0x42e102
push edi
call fcn.00428d47
pop ecx
jmp 0x42e400
mov edx, dword [ebp - 0x1ad0]
mov eax, dword [ebp - 0x1ad8]
mov ecx, dword [ebp - 0x1adc]
mov eax, dword [eax*4 + 0x4c49e0]
test byte [ecx + eax + 4], 0x40
je 0x42e3ed
cmp byte [edx], 0x1a
jne 0x42e3ed
xor eax, eax
jmp 0x42e409
call fcn.00428d68
mov dword [eax], 0x1c
call fcn.00428d34
and dword [eax], 0
or eax, 0xffffffff
jmp 0x42e409
sub esi, ecx
mov eax, esi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042c836
mov esp, ebp
pop ebp
ret