Function at 0x40db60
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x479fef
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x4c000c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
call fcn.0040e780
movzx eax, al
test eax, eax
jne 0x40db9f
jmp 0x40df6f
movzx ecx, byte [ebp + 0x10]
mov edx, dword [ebp + 8]
cmp dword [edx + 0xc], ecx
jge 0x40dbb0
jmp 0x40df6f
cmp dword [ebp + 0x14], 0
je 0x40dbbc
cmp dword [ebp + 0x1c], 0
jne 0x40dbcc
push str.Error:_pszSourceFile_or_lpszFormat_is_NULL_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x40df6f
lea eax, [ebp + 0x20]
mov dword [ebp - 0x268], eax
mov ecx, dword [ebp + 8]
add ecx, 0x10
push ecx
lea ecx, [ebp - 0x274]
call fcn.00409e00
mov dword [ebp - 4], 0
mov edx, 0x5000
imul eax, edx, 0
mov ecx, dword [ebp + 8]
lea edx, [ecx + eax + 0x286]
mov eax, 2
imul ecx, eax, 0
xor eax, eax
mov word [edx + ecx], ax
mov dword [ebp - 0x258], 0xffffffff
movzx ecx, byte [ebp + 0x10]
cmp ecx, 3
jne 0x40dd80
push 0x61a80
call dword [sym.imp.mfc120u.dll_Ordinal_265]
add esp, 4
mov dword [ebp - 0x278], eax
mov edx, dword [ebp - 0x278]
mov dword [ebp - 0x260], edx
push 0x61a80
push 0
mov eax, dword [ebp - 0x260]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 0x268]
push ecx
mov edx, dword [ebp + 0x1c]
push edx
push 0x30d3f
mov eax, dword [ebp - 0x260]
push eax
call dword [sym.imp.MSVCR120.dll__vsnwprintf]
add esp, 0x10
mov dword [ebp - 0x27c], eax
lea ecx, [ebp - 0x250]
call dword [sym.imp.mfc120u.dll_Ordinal_296]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24c]
call dword [sym.imp.mfc120u.dll_Ordinal_296]
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x260]
push ecx
push 0x48ebbc
lea edx, [ebp - 0x250]
push edx
call dword [sym.imp.mfc120u.dll_Ordinal_4772]
add esp, 0xc
lea ecx, [ebp - 0x250]
call dword [sym.imp.mfc120u.dll_Ordinal_5787]
cmp eax, 0x64
jge 0x40dce3
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x24c]
call dword [sym.imp.mfc120u.dll_Ordinal_1518]
jmp 0x40dcf9
lea ecx, [ebp - 0x24c]
push ecx
lea edx, [ebp - 0x250]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040e7e0
push 0x2780
lea ecx, [ebp - 0x24c]
call dword [sym.imp.mfc120u.dll_Ordinal_5787]
push eax
lea ecx, [ebp - 0x24c]
call dword [sym.imp.mfc120u.dll_Ordinal_5019]
push eax
mov eax, 0x5000
imul ecx, eax, 0
mov edx, dword [ebp + 8]
lea eax, [edx + ecx + 0x286]
push eax
call dword [sym.imp.MSVCR120.dll_wcsncpy]
add esp, 0xc
push 0xffffffffffffffff
lea ecx, [ebp - 0x24c]
call dword [sym.imp.mfc120u.dll_Ordinal_12430]
mov ecx, dword [ebp - 0x260]
mov dword [ebp - 0x270], ecx
mov edx, dword [ebp - 0x270]
push edx
call dword [sym.imp.mfc120u.dll_Ordinal_266]
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24c]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x250]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
jmp 0x40ddb2
mov eax, dword [ebp - 0x268]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
push 0x2780
mov edx, 0x5000
imul eax, edx, 0
mov ecx, dword [ebp + 8]
lea edx, [ecx + eax + 0x286]
push edx
call dword [sym.imp.MSVCR120.dll__vsnwprintf]
add esp, 0x10
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x268], 0
cmp dword [ebp - 0x258], 0
jge 0x40dde8
mov eax, 0x5000
imul ecx, eax, 0
mov edx, dword [ebp + 8]
lea eax, [edx + ecx + 0x286]
mov ecx, 2
imul edx, ecx, 0x2780
xor ecx, ecx
mov word [eax + edx], cx
lea edx, [ebp - 0x40]
push edx
call dword [sym.imp.MSVCR120.dll__wstrdate]
add esp, 4
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.MSVCR120.dll__wstrtime]
add esp, 4
lea ecx, [ebp - 0x25c]
call dword [sym.imp.mfc120u.dll_Ordinal_296]
mov byte [ebp - 4], 3
mov dword [ebp - 0x26c], 0
movzx ecx, byte [ebp + 0x10]
push ecx
lea edx, [ebp - 0x26c]
push edx
lea eax, [ebp - 0x25c]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040ea50
mov dword [ebp - 0x264], 0
mov ecx, dword [ebp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov word [ebp - 0x254], ax
movzx edx, word [ebp - 0x254]
cmp edx, 0x19
jle 0x40de90
movzx eax, word [ebp - 0x254]
mov ecx, dword [ebp + 0x14]
lea edx, [ecx + eax*2 - 0x32]
push edx
push str...._s
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x264], ecx
jmp 0x40de99
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x264], edx
mov eax, dword [ebp - 0x264]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, 0x5000
imul eax, edx, 0
mov ecx, dword [ebp + 8]
lea edx, [ecx + eax + 0x286]
push edx
lea ecx, [ebp - 0x25c]
call dword [sym.imp.mfc120u.dll_Ordinal_5020]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x40]
push ecx
push str._s__s___d__s:__s_at__d_in__s_r_n
push 0x2800
mov edx, 0x5000
shl edx, 0
mov eax, dword [ebp + 8]
lea ecx, [eax + edx + 0x286]
push ecx
call dword [sym.imp.MSVCR120.dll__snwprintf]
add esp, 0x28
mov dword [ebp - 0x258], eax
cmp dword [ebp - 0x258], 0
jge 0x40df2b
mov edx, 0x5000
shl edx, 0
mov eax, dword [ebp + 8]
lea ecx, [eax + edx + 0x286]
mov edx, 2
imul eax, edx, 0x27ff
xor edx, edx
mov word [ecx + eax], dx
push 0xffffffffffffffff
lea ecx, [ebp - 0x25c]
call dword [sym.imp.mfc120u.dll_Ordinal_12430]
mov eax, dword [ebp - 0x26c]
push eax
movzx ecx, byte [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040e0c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x25c]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x274]
call fcn.00409e40
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043fe23
mov esp, ebp
pop ebp
ret