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

Disassembly:
push 0xffffffffffffffff
push 0x41830b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8a8
mov eax, dword [0x427b3c]
push ebx
push ebp
mov ebp, dword [esp + 0x8c0]
push esi
push edi
push 0
mov dword [esp + 0x8b8], eax
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esp + 0x20]
call fcn.0040f040
mov eax, dword [esp + 0x8cc]
test eax, eax
mov dword [esp + 0x8c0], 0
je 0x40c1cb
mov eax, dword [edi + 0x328]
mov eax, dword [eax + 0x100]
push ebp
push eax
lea ecx, [esp + 0x28]
call fcn.0040f330
test eax, eax
lea ecx, [esp + 0x20]
je 0x40c1b3
push 0xa0000000
push 3
push 3
push 0xc0000000
call fcn.0040f200
test eax, eax
jne 0x40c1aa
lea ecx, [esp + 0x14]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.shutdown
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_3]
mov edx, dword [edi + 0x328]
push ecx
add edx, 0x108
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
mov byte [esp + 0x8d0], 1
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_1]
mov eax, dword [edi + 0x328]
push ecx
add eax, 0x100
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
mov byte [esp + 0x8d4], 2
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_1]
mov ecx, edi
mov byte [esp + 0x8d0], 0
call fcn.0040a720
test eax, eax
jne 0x40c176
cmp dword [esp + 0x14], 0xfa2
jne 0x40c176
lea ecx, [edi + 0x22c]
call sub.MFC71U.DLL_COleControlSite::SetFocus
lea ecx, [esp + 0x20]
call fcn.0040f250
lea ecx, [esp + 0x20]
mov dword [esp + 0x8c0], 0xffffffff
call fcn.0040f300
mov eax, 0xf
jmp 0x40c499
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0xa0000000
push 3
push 1
push 0x80000000
lea ecx, [esp + 0x30]
call fcn.0040f200
test eax, eax
jne 0x40c1aa
lea ecx, [esp + 0x20]
call fcn.0040f250
jmp 0x40c2c0
mov esi, dword [esp + 0x24]
jmp 0x40c27c
mov dword [esp + 0x8c0], 0xffffffff
call fcn.0040f300
or eax, 0xffffffff
jmp 0x40c499
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 0x40c27c
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.shutdown
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_3]
mov edx, dword [edi + 0x328]
push ecx
add edx, 0x108
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
mov byte [esp + 0x8d0], 3
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_1]
mov eax, dword [edi + 0x328]
push ecx
add eax, 0x100
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
mov byte [esp + 0x8d4], 4
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_1]
mov ecx, edi
mov byte [esp + 0x8d0], 0
call fcn.0040a720
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 0x40c47b
push 0
lea ecx, [esp + 0x14]
push ecx
mov ebp, 0x800
push ebp
lea edx, [esp + 0xc0]
push edx
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 0x40c2dc
lea ecx, [esp + 0x20]
call fcn.0040f250
test ebx, ebx
je 0x40c2c0
cmp dword [esp + 0x10], ebp
je 0x40c2f5
mov dword [esp + 0x8c0], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.0040f300
or eax, 0xffffffff
jmp 0x40c499
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x40c47b
cmp dword [esp + 0x10], ebp
jne 0x40c47b
mov al, byte [esp + 0x7ce]
test al, al
je 0x40c455
mov cl, byte [esp + 0x7cf]
test cl, cl
je 0x40c455
mov byte [esp + 0x44], 1
mov dword [esp + 0x48], 0x4e4
mov byte [esp + 0x4c], 2
mov dword [esp + 0x50], 0x352
mov byte [esp + 0x54], 3
mov dword [esp + 0x58], 0x1b5
mov byte [esp + 0x5c], 4
mov dword [esp + 0x60], 0x4e2
mov byte [esp + 0x64], 5
mov dword [esp + 0x68], 0x4e3
mov byte [esp + 0x6c], 6
mov dword [esp + 0x70], 0x4e5
mov byte [esp + 0x74], 7
mov dword [esp + 0x78], 0x4e6
mov byte [esp + 0x7c], 8
mov dword [esp + 0x80], 0x4e7
mov byte [esp + 0x84], 9
mov dword [esp + 0x88], 0x4e8
mov byte [esp + 0x8c], 0xa
mov dword [esp + 0x90], 0x4e9
mov byte [esp + 0x94], 0xc
mov dword [esp + 0x98], 0x3b5
mov byte [esp + 0x9c], 0xd
mov dword [esp + 0xa0], 0x3b6
mov byte [esp + 0xa4], 0xe
mov dword [esp + 0xa8], 0x3a8
mov byte [esp + 0xac], 0x6d
mov dword [esp + 0xb0], 0x3a4
xor eax, eax
cmp byte [esp + eax*8 + 0x44], cl
je 0x40c400
inc eax
cmp eax, 0xe
jb 0x40c3f2
jmp 0x40c422
mov ecx, dword [edi + 0x328]
mov edx, dword [esp + eax*8 + 0x48]
mov dword [ecx + 0xdc], edx
mov eax, dword [edi + 0x328]
mov ecx, dword [eax + 0xdc]
mov dword [eax + 0xd8], ecx
mov edx, dword [edi + 0x328]
mov eax, dword [edx + 0xdc]
push eax
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x8c0], 0xffffffff
je 0x40c2cf
call fcn.0040f300
xor eax, eax
jmp 0x40c499
push str.File__ls_is_not_a_6.5_sqlserver_master_data_file._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [esp + 0x20]
mov dword [esp + 0x8c0], 0xffffffff
call fcn.0040f300
mov eax, 0x6e
jmp 0x40c499
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x20]
mov dword [esp + 0x8c0], 0xffffffff
mov esi, eax
call fcn.0040f300
mov eax, esi
mov ecx, dword [esp + 0x8b8]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x8b4]
call fcn.00416740
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8b4
ret 8