Function at 0x72881645
Capabilities:
Print debug messages
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FormatMessageW]
push edi
mov dword [ebp - 0x28], ecx
xor ebx, ebx
lea ecx, [ebp + 0x14]
push ecx
push ebx
lea ecx, [ebp - 0x24]
push ecx
push ebx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x10]
push ebx
push eax
mov edi, 0x500
push edi
mov dword [ebp - 0x24], ebx
call esi
mov dword [ebp - 0x2c], eax
cmp eax, ebx
jne 0x7288169f
mov dword [ebp - 0x24], 0x72881288
mov dword [ebp - 0x2c], 0x40
mov byte [ebp - 0x1d], bl
jmp 0x728816a3
mov byte [ebp - 0x1d], 1
cmp byte [ebp + 8], bl
je 0x7288173b
mov eax, dword [ebp - 0x28]
cmp eax, ebx
jne 0x728816c1
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x72881871
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x728816c4
sub eax, edx
sar eax, 1
mov esi, eax
mov eax, dword [ebp - 0x2c]
add eax, esi
lea eax, [eax + eax + 2]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, ebx
jne 0x72881701
push dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call esi
push dword [ebp - 0x24]
call esi
jmp 0x72881871
mov eax, dword [ebp - 0x28]
mov edx, edi
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x72881708
mov ecx, dword [ebp - 0x24]
lea edx, [edi + esi*2]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
cmp ax, bx
jne 0x7288171d
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push edi
jmp 0x7288186b
lea eax, [ebp + 0x18]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
push ebx
lea eax, [ebp - 0x30]
push eax
push ebx
push ebx
push dword [ebp - 0x28]
mov dword [ebp - 0x30], ebx
push edi
call esi
mov esi, eax
cmp esi, ebx
jne 0x7288176a
push 7
mov dword [ebp - 0x30], 0x7288130c
pop esi
mov byte [ebp - 0x1e], bl
jmp 0x7288176e
mov byte [ebp - 0x1e], 1
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
test eax, eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x38]
setne byte [ebp - 0x31]
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
dec eax
neg eax
sbb al, al
inc al
cmp byte [ebp - 0x31], bl
je 0x7288184a
push ebx
cmp al, bl
je 0x728817c4
lea eax, [ebp - 0x3c]
push eax
push esi
push dword [ebp - 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push dword [ebp - 0x38]
call esi
push ebx
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x2c]
push dword [ebp - 0x24]
push dword [ebp - 0x38]
call esi
jmp 0x72881863
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push dword [ebp - 0x30]
mov edi, 0xfde9
push ebx
push edi
call esi
mov dword [ebp - 0x2c], eax
call fcn.72888430
mov dword [ebp - 0x28], esp
push ebx
push ebx
push dword [ebp - 0x2c]
push dword [ebp - 0x28]
push 0xffffffffffffffff
push dword [ebp - 0x30]
push ebx
push edi
call esi
push ebx
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x2c]
push dword [ebp - 0x28]
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push dword [ebp - 0x24]
push ebx
push edi
call esi
mov dword [ebp - 0x2c], eax
call fcn.72888430
mov dword [ebp - 0x28], esp
push ebx
push ebx
push dword [ebp - 0x2c]
push dword [ebp - 0x28]
push 0xffffffffffffffff
push dword [ebp - 0x24]
push ebx
push edi
call esi
push ebx
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x2c]
push dword [ebp - 0x28]
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x72881863
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 6
jne 0x72881863
push ebx
push dword [ebp - 0x30]
push dword [ebp - 0x24]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp byte [ebp - 0x1e], bl
je 0x72881871
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp byte [ebp - 0x1d], bl
je 0x7288187f
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea esp, [ebp - 0x4c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.72887da8
leave
ret