Function at 0x41bec3
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1ae4
call fcn.00425210
mov eax, dword [0x490e80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
xor esi, esi
mov dword [ebp - 0x1acc], eax
mov dword [ebp - 0x1ac8], esi
mov dword [ebp - 0x1ad0], esi
cmp dword [ebp + 0x10], esi
jne 0x41bcd9
xor eax, eax
jmp 0x41c3c2
cmp eax, esi
jne 0x41bd04
call fcn.00417f36
mov dword [eax], esi
call fcn.00417f23
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00417ebb
add esp, 0x14
or eax, 0xffffffff
jmp 0x41c3c2
push ebx
push edi
mov edi, dword [ebp + 8]
mov eax, edi
sar eax, 5
lea esi, [eax*4 + 0x4a93c0]
mov eax, dword [esi]
and edi, 0x1f
shl edi, 6
add eax, edi
mov bl, byte [eax + 0x24]
add bl, bl
sar bl, 1
mov dword [ebp - 0x1ad8], esi
mov byte [ebp - 0x1ad9], bl
cmp bl, 2
je 0x41bd3c
cmp bl, 1
jne 0x41bd6c
mov ecx, dword [ebp + 0x10]
not ecx
test cl, 1
jne 0x41bd6c
call fcn.00417f36
xor esi, esi
mov dword [eax], esi
call fcn.00417f23
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00417ebb
add esp, 0x14
jmp 0x41c3af
test byte [eax + 4], 0x20
je 0x41bd83
push 2
push 0
push 0
push dword [ebp + 8]
call fcn.00423462
add esp, 0x10
push dword [ebp + 8]
call fcn.00423649
pop ecx
test eax, eax
je 0x41c031
mov eax, dword [esi]
test byte [edi + eax + 4], 0x80
je 0x41c031
call fcn.00416c72
mov eax, dword [eax + 0x6c]
xor ecx, ecx
cmp dword [eax + 0x14], ecx
lea eax, [ebp - 0x1ae4]
sete cl
push eax
mov eax, dword [esi]
push dword [edi + eax]
mov dword [ebp - 0x1ae0], ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
je 0x41c031
xor ecx, ecx
cmp dword [ebp - 0x1ae0], ecx
je 0x41bde3
test bl, bl
je 0x41c033
call dword [sym.imp.KERNEL32.dll_GetConsoleCP]
mov ebx, dword [ebp - 0x1acc]
mov dword [ebp - 0x1ae4], eax
xor eax, eax
mov dword [ebp - 0x1ac4], eax
cmp dword [ebp + 0x10], eax
jbe 0x41c348
mov dword [ebp - 0x1abc], eax
mov al, byte [ebp - 0x1ad9]
test al, al
jne 0x41bf81
mov cl, byte [ebx]
mov esi, dword [ebp - 0x1ad8]
xor eax, eax
cmp cl, 0xa
sete al
mov dword [ebp - 0x1ae0], eax
mov eax, dword [esi]
add eax, edi
cmp dword [eax + 0x38], 0
je 0x41be4f
mov dl, byte [eax + 0x34]
mov byte [ebp - 0xc], dl
mov byte [ebp - 0xb], cl
and dword [eax + 0x38], 0
push 2
lea eax, [ebp - 0xc]
push eax
jmp 0x41be9a
movsx eax, cl
push eax
call fcn.0041348a
pop ecx
test eax, eax
je 0x41be97
mov ecx, dword [ebp - 0x1acc]
sub ecx, ebx
add ecx, dword [ebp + 0x10]
xor eax, eax
inc eax
cmp ecx, eax
jbe 0x41c018
push 2
lea eax, [ebp - 0x1ac0]
push ebx
push eax
call fcn.00423961
add esp, 0xc
cmp eax, 0xffffffff
je 0x41c33f
inc ebx
inc dword [ebp - 0x1abc]
jmp 0x41beb2
push 1
push ebx
lea eax, [ebp - 0x1ac0]
push eax
call fcn.00423961
add esp, 0xc
cmp eax, 0xffffffff
je 0x41c33f
xor eax, eax
push eax
push eax
push 5
lea ecx, [ebp - 0xc]
push ecx
push 1
lea ecx, [ebp - 0x1ac0]
call dword [ecx + 0x50]
push dword [ebp - 0x1ae4]
inc ebx
inc dword [ebp - 0x1abc]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
test esi, esi
je 0x41c33f
push 0
lea eax, [ebp - 0x1ac4]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x1ad8]
mov eax, dword [eax]
push dword [edi + eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41c333
mov eax, dword [ebp - 0x1abc]
mov ecx, dword [ebp - 0x1ad0]
add eax, ecx
cmp dword [ebp - 0x1ac4], esi
mov dword [ebp - 0x1ac8], eax
jl 0x41c33f
cmp dword [ebp - 0x1ae0], 0
je 0x41c004
push 0
lea eax, [ebp - 0x1ac4]
push eax
push 1
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x1ad8]
mov eax, dword [eax]
mov byte [ebp - 0xc], 0xd
push dword [edi + eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41c333
cmp dword [ebp - 0x1ac4], 1
jl 0x41c33f
inc dword [ebp - 0x1ad0]
inc dword [ebp - 0x1ac8]
jmp 0x41c004
cmp al, 1
je 0x41bf89
cmp al, 2
jne 0x41bfaa
movzx esi, word [ebx]
xor ecx, ecx
cmp si, 0xa
sete cl
inc ebx
inc ebx
add dword [ebp - 0x1abc], 2
mov dword [ebp - 0x1ac0], esi
mov dword [ebp - 0x1ae0], ecx
cmp al, 1
je 0x41bfb2
cmp al, 2
jne 0x41c004
push dword [ebp - 0x1ac0]
call fcn.0042513e
pop ecx
cmp ax, word [ebp - 0x1ac0]
jne 0x41c333
add dword [ebp - 0x1ac8], 2
cmp dword [ebp - 0x1ae0], 0
je 0x41c004
push 0xd
pop eax
push eax
mov dword [ebp - 0x1ac0], eax
call fcn.0042513e
pop ecx
cmp ax, word [ebp - 0x1ac0]
jne 0x41c333
inc dword [ebp - 0x1ac8]
inc dword [ebp - 0x1ad0]
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 0x1abc], eax
jb 0x41be0c
jmp 0x41c33f
mov ecx, dword [esi]
mov dl, byte [ebx]
inc dword [ebp - 0x1ac8]
mov byte [edi + ecx + 0x34], dl
mov ecx, dword [esi]
mov dword [edi + ecx + 0x38], eax
jmp 0x41c33f
xor ecx, ecx
mov eax, dword [esi]
add eax, edi
test byte [eax + 4], 0x80
je 0x41c300
mov eax, dword [ebp - 0x1acc]
mov dword [ebp - 0x1ac0], ecx
test bl, bl
jne 0x41c11f
mov dword [ebp - 0x1ac4], eax
cmp dword [ebp + 0x10], ecx
jbe 0x41c384
jmp 0x41c06c
mov esi, dword [ebp - 0x1ad8]
mov ecx, dword [ebp - 0x1ac4]
and dword [ebp - 0x1abc], 0
sub ecx, dword [ebp - 0x1acc]
lea eax, [ebp - 0x1ab8]
cmp ecx, dword [ebp + 0x10]
jae 0x41c0c3
mov edx, dword [ebp - 0x1ac4]
inc dword [ebp - 0x1ac4]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x41c0ae
inc dword [ebp - 0x1ad0]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x1abc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x1abc]
cmp dword [ebp - 0x1abc], 0x13ff
jb 0x41c085
mov ebx, eax
lea eax, [ebp - 0x1ab8]
sub ebx, eax
push 0
lea eax, [ebp - 0x1ad4]
push eax
push ebx
lea eax, [ebp - 0x1ab8]
push eax
mov eax, dword [esi]
push dword [edi + eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41c333
mov eax, dword [ebp - 0x1ad4]
add dword [ebp - 0x1ac8], eax
cmp eax, ebx
jl 0x41c33f
mov eax, dword [ebp - 0x1ac4]
sub eax, dword [ebp - 0x1acc]
cmp eax, dword [ebp + 0x10]
jb 0x41c066
jmp 0x41c33f
mov dword [ebp - 0x1abc], eax
cmp bl, 2
jne 0x41c1ff
cmp dword [ebp + 0x10], ecx
jbe 0x41c384
jmp 0x41c13f
mov esi, dword [ebp - 0x1ad8]
mov ecx, dword [ebp - 0x1abc]
and dword [ebp - 0x1ac4], 0
sub ecx, dword [ebp - 0x1acc]
lea eax, [ebp - 0x1ab8]
cmp ecx, dword [ebp + 0x10]
jae 0x41c1a3
mov edx, dword [ebp - 0x1abc]
add dword [ebp - 0x1abc], 2
movzx edx, word [edx]
inc ecx
inc ecx
cmp dx, 0xa
jne 0x41c18b
add dword [ebp - 0x1ad0], 2
push 0xd
pop ebx
mov word [eax], bx
inc eax
inc eax
add dword [ebp - 0x1ac4], 2
add dword [ebp - 0x1ac4], 2
mov word [eax], dx
inc eax
inc eax
cmp dword [ebp - 0x1ac4], 0x13fe
jb 0x41c158
mov ebx, eax
lea eax, [ebp - 0x1ab8]
sub ebx, eax
push 0
lea eax, [ebp - 0x1ad4]
push eax
push ebx
lea eax, [ebp - 0x1ab8]
push eax
mov eax, dword [esi]
push dword [edi + eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41c333
mov eax, dword [ebp - 0x1ad4]
add dword [ebp - 0x1ac8], eax
cmp eax, ebx
jl 0x41c33f
mov eax, dword [ebp - 0x1abc]
sub eax, dword [ebp - 0x1acc]
cmp eax, dword [ebp + 0x10]
jb 0x41c139
jmp 0x41c33f
cmp dword [ebp + 0x10], ecx
jbe 0x41c384
mov ecx, dword [ebp - 0x1abc]
and dword [ebp - 0x1ac4], 0
sub ecx, dword [ebp - 0x1acc]
push 2
lea eax, [ebp - 0x6b8]
pop esi
cmp ecx, dword [ebp + 0x10]
jae 0x41c265
mov edx, dword [ebp - 0x1abc]
movzx edx, word [edx]
add dword [ebp - 0x1abc], esi
add ecx, esi
cmp dx, 0xa
jne 0x41c24e
push 0xd
pop ebx
mov word [eax], bx
add eax, esi
add dword [ebp - 0x1ac4], esi
add dword [ebp - 0x1ac4], esi
mov word [eax], dx
add eax, esi
cmp dword [ebp - 0x1ac4], 0x6a8
jb 0x41c224
xor esi, esi
push esi
push esi
push 0xd55
lea ecx, [ebp - 0x1410]
push ecx
lea ecx, [ebp - 0x6b8]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, ecx
push eax
push esi
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
cmp ebx, esi
je 0x41c333
push 0
lea eax, [ebp - 0x1ad4]
push eax
mov eax, ebx
sub eax, esi
push eax
lea eax, [ebp + esi - 0x1410]
push eax
mov eax, dword [ebp - 0x1ad8]
mov eax, dword [eax]
push dword [edi + eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41c2d3
add esi, dword [ebp - 0x1ad4]
cmp ebx, esi
jg 0x41c29c
jmp 0x41c2df
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1ac0], eax
cmp ebx, esi
jg 0x41c33f
mov eax, dword [ebp - 0x1abc]
sub eax, dword [ebp - 0x1acc]
mov dword [ebp - 0x1ac8], eax
cmp eax, dword [ebp + 0x10]
jb 0x41c208
jmp 0x41c33f
push 0
lea ecx, [ebp - 0x1ad4]
push ecx
push dword [ebp + 0x10]
push dword [ebp - 0x1acc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41c333
mov eax, dword [ebp - 0x1ad4]
and dword [ebp - 0x1ac0], 0
mov dword [ebp - 0x1ac8], eax
jmp 0x41c33f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1ac0], eax
cmp dword [ebp - 0x1ac8], 0
jne 0x41c3b4
cmp dword [ebp - 0x1ac0], 0
je 0x41c37e
push 5
pop esi
cmp dword [ebp - 0x1ac0], esi
jne 0x41c370
call fcn.00417f23
mov dword [eax], 9
call fcn.00417f36
mov dword [eax], esi
jmp 0x41c3af
push dword [ebp - 0x1ac0]
call fcn.00417f49
pop ecx
jmp 0x41c3af
mov esi, dword [ebp - 0x1ad8]
mov eax, dword [esi]
test byte [edi + eax + 4], 0x40
je 0x41c39c
mov eax, dword [ebp - 0x1acc]
cmp byte [eax], 0x1a
jne 0x41c39c
xor eax, eax
jmp 0x41c3c0
call fcn.00417f23
mov dword [eax], 0x1c
call fcn.00417f36
and dword [eax], 0
or eax, 0xffffffff
jmp 0x41c3c0
mov eax, dword [ebp - 0x1ac8]
sub eax, dword [ebp - 0x1ad0]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00421fa7
leave
ret