Function at 0x108880b
Capabilities:
Write file on windows

Disassembly:
push 0x824
mov eax, 0x10a8f7b
call fcn.01068477
lea eax, [ebp - 0x414]
mov dword [ebp - 0x820], eax
mov edi, 0x200
xor ebx, ebx
mov dword [ebp - 0x824], ebx
mov dword [ebp - 0x81c], ebx
cmp dword [ebp + 8], ebx
jne 0x1088845
mov dword [ebp + 8], 0x1011504
mov eax, dword [ebp + 8]
cmp word [eax], bx
jne 0x10888a5
mov dword [ebp - 0x828], ebx
cmp dword [ebp - 0x820], 0
je 0x1088876
lea eax, [ebp - 0x414]
cmp eax, dword [ebp - 0x820]
je 0x1088876
push dword [ebp - 0x820]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x824], 0
je 0x1088899
lea eax, [ebp - 0x814]
cmp eax, dword [ebp - 0x824]
je 0x1088899
push dword [ebp - 0x824]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x828]
call fcn.010684e2
ret
cmp dword [0x10b8d4c], ebx
jne 0x10888f1
push 0x101b128
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
call esi
test eax, eax
je 0x10888cf
push 0x101b11c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10b8d4c], eax
xor ebx, ebx
cmp dword [0x10b8d4c], ebx
jne 0x10888f1
push 0x101b104
call esi
push 0x101b11c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10b8d4c], eax
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 0x818], eax
mov eax, dword [0x10b8d4c]
cmp eax, ebx
je 0x1088910
cmp dword [0x10b8d48], ebx
je 0x1088917
or dword [ebp - 0x818], 0xffffffff
cmp dword [ebp - 0x818], 0xffffffff
je 0x1088a17
lea ecx, [ebp + 0xc]
push ecx
push dword [ebp + 8]
push edi
lea ecx, [ebp - 0x414]
push ecx
call eax
add esp, 0x10
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10889c6
mov esi, 0x10000
cmp edi, esi
jae 0x108899f
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x820], eax
je 0x1088966
push dword [ebp - 0x820]
call dword [sym.imp.KERNEL32.dll_LocalFree]
add edi, edi
cmp edi, esi
jbe 0x108896e
mov edi, esi
lea eax, [edi + edi]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x820], eax
test eax, eax
je 0x10889b0
lea ecx, [ebp + 0xc]
push ecx
push dword [ebp + 8]
push edi
push eax
call dword [0x10b8d4c]
add esp, 0x10
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1088948
jmp 0x10889c6
push 0x8007006f
push 0x2ec01a1
call fcn.0107ae44
jmp 0x1088a10
push 0x8007000e
push 0x2fc01a1
call fcn.0107ae44
or dword [ebp - 0x818], 0xffffffff
cmp dword [ebp - 0x818], 0xffffffff
je 0x1088a17
push dword [ebp - 0x818]
call dword [sym.imp.KERNEL32.dll_GetFileType]
and eax, 0xffff7fff
sub eax, 0
je 0x10889f5
dec eax
dec eax
je 0x1088a17
mov dword [ebp - 0x81c], 1
jmp 0x1088a17
mov eax, 0x8000ffff
push eax
push eax
push 0x31501a1
call fcn.0107ae61
mov dword [0x10b8d48], 1
or dword [ebp - 0x818], 0xffffffff
xor edi, edi
mov dword [ebp - 0x828], edi
cmp dword [ebp - 0x818], 0xffffffff
je 0x1088bdb
cmp dword [ebp - 0x81c], edi
jne 0x1088a71
push edi
lea eax, [ebp - 0x828]
push eax
push ebx
push dword [ebp - 0x820]
push dword [ebp - 0x818]
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
test eax, eax
jne 0x1088bce
call fcn.010a4804
push 0x80070006
push eax
push 0x32701a1
call fcn.0107ae61
jmp 0x1088bc7
lea esi, [ebx + ebx + 2]
cmp esi, 0x400
ja 0x1088a8b
lea eax, [ebp - 0x814]
mov dword [ebp - 0x824], eax
jmp 0x1088ab3
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x824], eax
cmp eax, edi
jne 0x1088ab3
push 0x8007000e
push 0x33d01a1
call fcn.0107ae44
or dword [ebp - 0x818], 0xffffffff
cmp dword [ebp - 0x818], 0xffffffff
je 0x1088bdb
mov edi, ebx
xor eax, eax
cmp ebx, eax
je 0x1088b21
push eax
push eax
push esi
push dword [ebp - 0x824]
push ebx
push dword [ebp - 0x820]
push eax
mov esi, dword [sym.imp.KERNEL32.dll_GetACP]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jne 0x1088b28
call fcn.010a4804
push eax
push 0x35901a1
call fcn.0107ae44
call esi
push eax
push 0x35a01a1
push dword [ebp - 0x820]
call fcn.0107ae7f
push ebx
push 0x35b01a1
push 0x101b0f8
call fcn.0107ae7f
or dword [ebp - 0x818], 0xffffffff
cmp dword [ebp - 0x818], 0xffffffff
je 0x1088bdb
mov esi, dword [ebp - 0x824]
mov dword [ebp - 0x828], ebx
and dword [ebp - 0x81c], 0
test edi, edi
jbe 0x1088b83
cmp byte [esi], 0xa
jne 0x1088b74
lea ebx, [esi + 1]
mov eax, edi
sub eax, dword [ebp - 0x81c]
push eax
push esi
push ebx
call dword [sym.imp.msvcrt.dll_memmove]
add esp, 0xc
mov byte [esi], 0xd
mov esi, ebx
inc dword [ebp - 0x81c]
inc edi
inc dword [ebp - 0x81c]
inc esi
cmp dword [ebp - 0x81c], edi
jb 0x1088b4c
push 0
lea eax, [ebp - 0x82c]
push eax
push edi
push dword [ebp - 0x824]
push dword [ebp - 0x818]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1088bce
call fcn.010a4804
mov esi, eax
push esi
push 0x38001a1
call fcn.0107ae44
cmp esi, 0x80070006
jne 0x1088bce
mov dword [0x10b8d48], 1
or dword [ebp - 0x818], 0xffffffff
cmp dword [ebp - 0x818], 0xffffffff
jne 0x1088853
and dword [ebp - 4], 0
push 0x102d8fc
lea ecx, [ebp - 0x81c]
call fcn.0102d329
mov byte [ebp - 4], 1
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll___iob_func]
add eax, 0x20
push eax
call dword [sym.imp.msvcrt.dll_vfwprintf]
mov dword [ebp - 0x828], eax
mov byte [ebp - 4], 0
push dword [ebp - 0x81c]
call dword [sym.imp.msvcrt.dll_void____cdecl___unsigned_int__struct__EXCEPTION_POINTERS_____cdecl__set_se_translator_void____cdecl___unsigned_int__struct__EXCEPTION_POINTERS___]
add esp, 0x10
or dword [ebp - 4], 0xffffffff
jmp 0x1088853