Function at 0x40c390
Capabilities:
Print debug messages
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x417b07
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8a8
push ebx
push ebp
push esi
push edi
mov edi, ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esp + 0x24]
call fcn.0040ef10
mov eax, dword [esp + 0x8cc]
mov dword [esp + 0x8c0], 0
test eax, eax
je 0x40c503
mov eax, dword [edi + 0x290]
mov ecx, dword [esp + 0x8c8]
push ecx
lea ecx, [esp + 0x28]
mov eax, dword [eax + 0x120]
push eax
call fcn.0040efc0
test eax, eax
je 0x40c5fb
push 0xa0000000
push 3
push 3
push 0xc0000000
lea ecx, [esp + 0x34]
call fcn.0040f270
test eax, eax
jne 0x40c4fa
lea edx, [esp + 0x1c]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.shutdown
call sub.MFC42u.DLL_CString::CString_1
mov ecx, dword [edi + 0x290]
mov byte [esp + 0x8c8], 1
call fcn.004036b0
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call sub.MFC42u.DLL_CString::CString_3
mov ecx, dword [edi + 0x290]
mov byte [esp + 0x8cc], 2
call fcn.00403690
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call sub.MFC42u.DLL_CString::CString_3
mov ecx, edi
mov byte [esp + 0x8d0], 0
call fcn.0040cac0
test eax, eax
jne 0x40c4c6
cmp dword [esp + 0x1c], 0xfa2
jne 0x40c4c6
lea ecx, [edi + 0x1d0]
call sub.MFC42u.DLL_CWnd::SetFocus
lea ecx, [esp + 0x24]
call fcn.0040f090
lea ecx, [esp + 0x24]
mov dword [esp + 0x8c0], 0xffffffff
call fcn.0040efa0
mov eax, 0xf
jmp 0x40c7dc
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0xa0000000
push 3
push 1
push 0x80000000
lea ecx, [esp + 0x34]
call fcn.0040f270
test eax, eax
jne 0x40c4fa
lea ecx, [esp + 0x24]
call fcn.0040f090
jmp 0x40c5fb
mov esi, dword [esp + 0x28]
jmp 0x40c5b7
mov ebp, dword [esp + 0x8c8]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ebp
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x40c5b7
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.shutdown
call sub.MFC42u.DLL_CString::CString_1
mov ecx, dword [edi + 0x290]
mov byte [esp + 0x8c8], 3
call fcn.004036b0
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call sub.MFC42u.DLL_CString::CString_3
mov ecx, dword [edi + 0x290]
mov byte [esp + 0x8cc], 4
call fcn.00403690
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call sub.MFC42u.DLL_CString::CString_3
mov ecx, edi
mov byte [esp + 0x8d0], 0
call fcn.0040cac0
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ebp
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x40c7be
lea eax, [esp + 0x10]
push 0
mov ebp, 0x800
push eax
lea ecx, [esp + 0xc0]
push ebp
push ecx
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
mov eax, dword [esp + 0x8cc]
test eax, eax
je 0x40c617
lea ecx, [esp + 0x24]
call fcn.0040f090
test ebx, ebx
je 0x40c5fb
cmp dword [esp + 0x10], ebp
je 0x40c630
mov dword [esp + 0x8c0], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.0040efa0
or eax, 0xffffffff
jmp 0x40c7dc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x40c7be
cmp dword [esp + 0x10], ebp
jne 0x40c7be
mov al, byte [esp + 0x7d2]
test al, al
je 0x40c798
mov dl, byte [esp + 0x7d3]
test dl, dl
je 0x40c798
mov byte [esp + 0x48], 1
mov dword [esp + 0x4c], 0x4e4
mov byte [esp + 0x50], 2
mov dword [esp + 0x54], 0x352
mov byte [esp + 0x58], 3
mov dword [esp + 0x5c], 0x1b5
mov byte [esp + 0x60], 4
mov dword [esp + 0x64], 0x4e2
mov byte [esp + 0x68], 5
mov dword [esp + 0x6c], 0x4e3
mov byte [esp + 0x70], 6
mov dword [esp + 0x74], 0x4e5
mov byte [esp + 0x78], 7
mov dword [esp + 0x7c], 0x4e6
mov byte [esp + 0x80], 8
mov dword [esp + 0x84], 0x4e7
mov byte [esp + 0x88], 9
mov dword [esp + 0x8c], 0x4e8
mov byte [esp + 0x90], 0xa
mov dword [esp + 0x94], 0x4e9
mov byte [esp + 0x98], 0xc
mov dword [esp + 0x9c], 0x3b5
mov byte [esp + 0xa0], 0xd
mov dword [esp + 0xa4], 0x3b6
mov byte [esp + 0xa8], 0xe
mov dword [esp + 0xac], 0x3a8
mov byte [esp + 0xb0], 0x6d
mov dword [esp + 0xb4], 0x3a4
xor eax, eax
lea ecx, [esp + 0x48]
cmp byte [ecx], dl
je 0x40c743
inc eax
add ecx, 8
cmp eax, 0xe
jb 0x40c734
jmp 0x40c765
mov edx, dword [edi + 0x290]
mov eax, dword [esp + eax*8 + 0x4c]
mov dword [edx + 0xfc], eax
mov eax, dword [edi + 0x290]
mov ecx, dword [eax + 0xfc]
mov dword [eax + 0xf8], ecx
mov edx, dword [edi + 0x290]
mov eax, dword [edx + 0xfc]
push eax
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
mov dword [esp + 0x8c0], 0xffffffff
lea ecx, [esp + 0x24]
je 0x40c60a
call fcn.0040efa0
xor eax, eax
jmp 0x40c7dc
push str.File__ls_is_not_a_6.5_sqlserver_master_data_file._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [esp + 0x24]
mov dword [esp + 0x8c0], 0xffffffff
call fcn.0040efa0
mov eax, 0x6e
jmp 0x40c7dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x24]
mov esi, eax
mov dword [esp + 0x8c0], 0xffffffff
call fcn.0040efa0
mov eax, esi
mov ecx, dword [esp + 0x8b8]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x8b4
ret 8