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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x1001c004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp + 0x18]
push ebx
push esi
mov esi, dword [ebp + 0x14]
xor edx, edx
push edi
push ecx
push edx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x10]
push ecx
push edx
push edx
push eax
push 0x500
mov dword [ebp - 0x24], edx
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov ebx, eax
xor eax, eax
inc eax
mov dword [ebp - 0x38], eax
test ebx, ebx
jne 0x1000682c
mov ebx, 0x10005dd0
xor edi, edi
mov ecx, ebx
mov dword [ebp - 0x24], ecx
lea edx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
cmp ax, di
jne 0x10006816
sub ebx, edx
sar ebx, 1
xor edx, edx
mov byte [ebp - 0x1d], dl
jmp 0x10006834
mov ecx, dword [ebp - 0x24]
xor edx, edx
mov byte [ebp - 0x1d], al
cmp byte [ebp + 8], 0
je 0x100068a0
test esi, esi
jne 0x10006841
push ecx
jmp 0x10006875
mov ecx, esi
xor edi, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x10006848
sub ecx, edx
sar ecx, 1
inc ecx
add ebx, ecx
lea eax, [ebx + ebx]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x10006880
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x10006a02
push dword [ebp - 0x24]
push esi
push 0x10005e54
push ebx
push edi
call fcn.10006a80
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push edi
jmp 0x100069fc
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
push edx
lea eax, [ebp - 0x2c]
push eax
push edx
push edx
push esi
push 0x500
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov edi, eax
test edi, edi
jne 0x100068e5
mov edi, 0x10005e60
xor edx, edx
mov dword [ebp - 0x2c], edi
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
cmp ax, dx
jne 0x100068d3
sub edi, ecx
mov byte [ebp - 0x38], dl
sar edi, 1
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov esi, eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x30]
test esi, esi
setne byte [ebp - 0x25]
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
dec eax
neg eax
sbb al, al
inc al
test esi, esi
je 0x1000693b
test al, al
je 0x1000693b
mov esi, dword [ebp - 0x30]
xor eax, eax
push eax
lea eax, [ebp - 0x34]
push eax
push edi
push dword [ebp - 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
xor eax, eax
push eax
lea eax, [ebp - 0x34]
push eax
push ebx
push dword [ebp - 0x24]
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x100069f3
cmp byte [ebp - 0x25], 0
jne 0x10006965
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 6
jne 0x100069f3
xor eax, eax
push eax
push dword [ebp - 0x2c]
push dword [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x100069f3
xor eax, eax
mov ebx, 0xfde9
push eax
push eax
push eax
push eax
push 0xffffffffffffffff
push dword [ebp - 0x2c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
call fcn.100196b0
mov esi, esp
xor eax, eax
push eax
push eax
push edi
push esi
push 0xffffffffffffffff
push dword [ebp - 0x2c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, dword [ebp - 0x30]
xor eax, eax
push eax
lea eax, [ebp - 0x34]
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
push eax
push eax
push eax
push eax
push 0xffffffffffffffff
push dword [ebp - 0x24]
push eax
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
call fcn.100196b0
mov esi, esp
xor eax, eax
push eax
push eax
push edi
push esi
push 0xffffffffffffffff
push dword [ebp - 0x24]
push eax
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor eax, eax
push eax
lea eax, [ebp - 0x34]
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp byte [ebp - 0x38], 0
je 0x10006a02
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp byte [ebp - 0x1d], 0
je 0x10006a11
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea esp, [ebp - 0x48]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000df30
leave
ret