Function at 0x48e8cd
Capabilities:
Write file on windows

Disassembly:
mov al, byte [ebp - 0x1ac1]
test al, al
jne 0x48e930
mov cl, byte [ebx]
mov esi, dword [ebp - 0x1adc]
xor eax, eax
cmp cl, 0xa
sete al
mov dword [ebp - 0x1ae4], eax
mov eax, dword [esi]
add eax, edi
cmp dword [eax + 0x38], 0
je 0x48e7fe
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 0x48e849
movsx eax, cl
push eax
call fcn.00483437
pop ecx
test eax, eax
je 0x48e846
mov ecx, dword [ebp - 0x1acc]
sub ecx, ebx
add ecx, dword [ebp + 0x10]
xor eax, eax
inc eax
cmp ecx, eax
jbe 0x48e9c7
push 2
lea eax, [ebp - 0x1abc]
push ebx
push eax
call fcn.004908dc
add esp, 0xc
cmp eax, 0xffffffff
je 0x48eccf
inc ebx
inc dword [ebp - 0x1ac0]
jmp 0x48e861
push 1
push ebx
lea eax, [ebp - 0x1abc]
push eax
call fcn.004908dc
add byte [eax], al
add esp, 0xc
cmp eax, 0xffffffff
je 0x48eccf
xor eax, eax
push eax
push eax
push 5
lea ecx, [ebp - 0xc]
push ecx
push 1
lea ecx, [ebp - 0x1abc]
push ecx
push eax
push dword [ebp - 0x1ae0]
inc ebx
inc dword [ebp - 0x1ac0]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
test esi, esi
je 0x48eccf
push 0
lea eax, [ebp - 0x1ad4]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x1adc]
mov eax, dword [eax]
push dword [edi + eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x48ecc3
mov eax, dword [ebp - 0x1ac0]
mov ecx, dword [ebp - 0x1ad0]
add eax, ecx
mov dword [ebp - 0x1ac8], eax
cmp dword [ebp - 0x1ad4], esi
jl 0x48eccf
cmp dword [ebp - 0x1ae4], 0
je 0x48e9b3
push 0
lea eax, [ebp - 0x1ad4]
push eax
push 1
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x1adc]
mov eax, dword [eax]
mov byte [ebp - 0xc], 0xd
push dword [edi + eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x48ecc3
cmp dword [ebp - 0x1ad4], 1
jl 0x48eccf
inc dword [ebp - 0x1ad0]
inc dword [ebp - 0x1ac8]
jmp 0x48e9b3
cmp al, 1
je 0x48e938
cmp al, 2
jne 0x48e959
movzx esi, word [ebx]
xor ecx, ecx
cmp esi, 0xa
sete cl
add ebx, 2
add dword [ebp - 0x1ac0], 2
mov dword [ebp - 0x1abc], esi
mov dword [ebp - 0x1ae4], ecx
cmp al, 1
je 0x48e961
cmp al, 2
jne 0x48e9b3
push dword [ebp - 0x1abc]
call fcn.00493257
pop ecx
cmp ax, word [ebp - 0x1abc]
jne 0x48ecc3
add dword [ebp - 0x1ac8], 2
cmp dword [ebp - 0x1ae4], 0
je 0x48e9b3
push 0xd
pop eax
push eax
mov dword [ebp - 0x1abc], eax
call fcn.00493257
pop ecx
cmp ax, word [ebp - 0x1abc]
jne 0x48ecc3
inc dword [ebp - 0x1ac8]
inc dword [ebp - 0x1ad0]
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 0x1ac0], eax
jb 0x48e7bb
jmp 0x48eccf
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 0x48eccf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1abc], eax
cmp dword [ebp - 0x1ac8], 0
jne 0x48ed44
cmp dword [ebp - 0x1abc], 0
je 0x48ed0e
push 5
pop esi
cmp dword [ebp - 0x1abc], esi
jne 0x48ed00
call fcn.00487632
mov dword [eax], 9
add byte [eax], al
call fcn.00487645
mov dword [eax], esi
jmp 0x48ed3f
push dword [ebp - 0x1abc]
call fcn.00487658
pop ecx
jmp 0x48ed3f
mov eax, dword [ebp - 0x1adc]
mov eax, dword [eax]
test byte [edi + eax + 4], 0x40
je 0x48ed2c
mov eax, dword [ebp - 0x1acc]
cmp byte [eax], 0x1a
jne 0x48ed2c
xor eax, eax
jmp 0x48ed50
call fcn.00487632
mov dword [eax], 0x1c
call fcn.00487645
and dword [eax], 0
or eax, 0xffffffff
jmp 0x48ed50
invalid