Function at 0x48f734
Capabilities:
Write file on windows

Disassembly:
push 0xa88
mov eax, 0x510ae0
call fcn.004f41e2
mov ebx, ecx
mov dword [ebp - 0xa70], ebx
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0xa58]
mov dword [ebp - 0xa60], eax
call fcn.00409c4c
xor eax, eax
lea ecx, [ebp - 0x534]
mov dword [ebp - 4], eax
call fcn.00409c4c
xor ecx, ecx
xor eax, eax
push ecx
push dword [ebx + 0xc]
inc eax
lea ecx, [ebp - 0xa58]
push str.ConEmuLastOutputMapping._08X
mov dword [ebp - 0xa64], eax
mov byte [ebp - 4], al
call fcn.0040f294
push 0xffffffffffffffff
xor ebx, ebx
lea ecx, [ebp - 0xa58]
push ebx
push ebx
call fcn.0047bcfc
test eax, eax
je 0x48faba
lea edx, [eax + 0x4e]
cmp word [edx], bx
je 0x48faba
movsx ecx, word [eax + 0x30]
movsx edi, word [eax + 0x32]
mov esi, dword [eax + 0x46]
push ebx
push ebx
imul edi, ecx
lea ecx, [ebp - 0x534]
push edx
call fcn.0040f294
cmp edi, esi
lea ecx, [ebp - 0x534]
cmovb esi, edi
lea eax, [esi*4 + 0x56]
push eax
push ebx
push ebx
call fcn.0047bbe4
mov ebx, eax
test ebx, ebx
jne 0x48f7fc
mov eax, str.Stored_output_data_mapping_was_not_created_
jmp 0x48fabf
push 5
pop ecx
push dword [ebp - 0xa60]
lea esi, [ebx + 0x30]
lea edi, [ebp - 0xa94]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0xa70]
movsw word es:[edi], word [esi]
call fcn.0048fafe
mov esi, eax
test esi, esi
mov dword [ebp - 0xa74], esi
setne byte [ebp - 0xa59]
cmp dword [ebx + 4], 0xa6
jne 0x48faa2
cmp dword [ebx], 0x56
jbe 0x48faa2
movsx edx, word [ebp - 0xa92]
lea edi, [ebx + 0x52]
movsx ecx, word [ebp - 0xa94]
mov eax, edx
imul eax, ecx
cmp dword [ebx + 0x46], eax
cmovb eax, dword [ebx + 0x46]
lea eax, [edi + eax*4]
mov dword [ebp - 0xa7c], eax
test ecx, ecx
je 0x48faa2
test edx, edx
je 0x48faa2
xor eax, eax
cmp dword [ebx + 0x4e], eax
je 0x48faa2
mov ebx, eax
lea eax, [ecx*2 + 2]
push eax
mov dword [ebp - 0xa70], ebx
call fcn.004e1c0a
movsx edx, word [ebp - 0xa94]
pop ecx
xor ecx, ecx
mov dword [ebp - 0xa6c], eax
mov word [eax + edx*2], cx
cmp byte [ebp + 8], cl
jne 0x48f8d3
lea ecx, [edx + 1]
push ecx
call fcn.004e1c0a
mov ebx, eax
movsx eax, word [ebp - 0xa94]
pop ecx
xor ecx, ecx
mov dword [ebp - 0xa70], ebx
mov byte [ebx + eax], cl
jmp 0x48f900
xor eax, eax
mov dword [ebp - 0xa60], 0xfeff
push eax
lea eax, [ebp - 0xa68]
push eax
push 2
lea eax, [ebp - 0xa60]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
movsx eax, word [ebp - 0xa94]
xor ecx, ecx
mov dword [ebp - 0xa78], ecx
movsx ecx, word [ebp - 0xa92]
test ecx, ecx
je 0x48fa86
xor edx, edx
inc edx
cmp edi, dword [ebp - 0xa7c]
jae 0x48fa86
lea ecx, [edi + eax*4]
mov dword [ebp - 0xa60], ecx
add ecx, 0xfffffffc
cmp ecx, edi
jb 0x48f94f
push 0x20
pop edx
cmp word [ecx], dx
jne 0x48f943
sub ecx, 4
cmp ecx, edi
jae 0x48f937
mov esi, dword [ebp - 0xa74]
mov edx, dword [ebp - 0xa64]
sub ecx, edi
sar ecx, 2
add ecx, 1
jne 0x48f961
test edx, edx
jne 0x48fa67
cmp dword [ebp - 0xa64], 0
je 0x48f974
xor eax, eax
mov dword [ebp - 0xa64], eax
jmp 0x48f9af
test ecx, ecx
jne 0x48f9af
mov eax, dword [ebp - 0xa60]
mov edx, dword [ebp - 0xa7c]
cmp eax, edx
jae 0x48fa86
push 0x20
pop ebx
cmp word [eax], bx
jne 0x48f99b
add eax, 4
cmp eax, edx
jb 0x48f98f
mov esi, dword [ebp - 0xa74]
mov ebx, dword [ebp - 0xa70]
cmp eax, edx
jae 0x48fa86
mov eax, dword [ebp - 0xa6c]
mov edx, eax
test ecx, ecx
je 0x48f9da
mov esi, ecx
mov ax, word [edi]
lea edi, [edi + 4]
mov word [edx], ax
lea edx, [edx + 2]
sub esi, 1
jne 0x48f9bd
mov esi, dword [ebp - 0xa74]
mov eax, dword [ebp - 0xa6c]
cmp byte [ebp + 8], 0
je 0x48fa12
test ecx, ecx
je 0x48f9ff
xor eax, eax
push eax
lea eax, [ebp - 0xa68]
push eax
lea eax, [ecx + ecx]
push eax
push dword [ebp - 0xa6c]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
push eax
lea eax, [ebp - 0xa68]
push eax
push 4
push 0x5219f4
jmp 0x48fa53
xor edx, edx
push edx
push edx
movsx edx, word [ebp - 0xa94]
push edx
push ebx
push ecx
push eax
xor eax, eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x48fa42
xor ecx, ecx
push ecx
lea ecx, [ebp - 0xa68]
push ecx
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
push eax
lea eax, [ebp - 0xa68]
push eax
push 2
push 0x557d6c
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0xa64]
movsx eax, word [ebp - 0xa94]
inc dword [ebp - 0xa78]
movsx ecx, word [ebp - 0xa92]
mov edi, dword [ebp - 0xa60]
cmp dword [ebp - 0xa78], ecx
jb 0x48f918
test ebx, ebx
je 0x48fa91
push ebx
call fcn.004e1bea
pop ecx
mov eax, dword [ebp - 0xa6c]
test eax, eax
je 0x48faa2
push eax
call fcn.004e1bea
pop ecx
test esi, esi
je 0x48fab2
cmp esi, 0xffffffff
je 0x48fab2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, byte [ebp - 0xa59]
jmp 0x48facc
mov eax, str.Stored_output_mapping_was_not_created_
push ebx
push ebx
push ebx
push ebx
push eax
call fcn.00420ad9
add esp, 0x14
cmp dword [ebp - 0x534], 0
je 0x48fae0
lea ecx, [ebp - 0x534]
call fcn.0040c97d
cmp dword [ebp - 0xa58], 0
je 0x48faf4
lea ecx, [ebp - 0xa58]
call fcn.0040c97d
mov al, bl
call fcn.004f418c
ret 8