Function at 0x10005da0
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x1054
call fcn.1003baf0
mov eax, dword [0x100530a0]
xor eax, esp
mov dword [esp + 0x1050], eax
push esi
mov esi, dword [esp + 0x1060]
lea eax, [esp + 0x854]
push edi
mov edi, dword [esp + 0x1060]
push 0x800
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x858]
push esi
push 0
push edi
push 0xffffffffffffffff
push 0x400
push eax
call fcn.10005480
push dword [eax + 4]
push dword [eax]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vsnwprintf_s]
or ecx, 0xffffffff
add esp, 0x20
test eax, eax
cmovs eax, ecx
test eax, eax
jns 0x10005e1b
xor eax, eax
mov word [esp + 0x1056], ax
push 0x40
lea eax, [esp + 0x1c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__ftime64_s]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64]
push eax
push str._b__d__H:_M:_S
lea eax, [esp + 0x34]
push 0x20
push eax
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_wcsftime]
mov edx, eax
add esp, 0x24
test edx, edx
je 0x10005e99
lea ecx, [edx + 4]
cmp ecx, 0x20
jae 0x10005e99
movzx eax, word [esp + 0x10]
lea esi, [edx + edx]
push eax
push str.._03d
mov eax, 0x1f
sub eax, edx
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x28]
add eax, esi
push eax
call fcn.10005ff0
add esp, 0x14
test eax, eax
jns 0x10005e99
lea eax, [esp + 0x56]
sub eax, esi
xor ecx, ecx
mov word [eax], cx
push 0x1003f6b8
lea eax, [esp + 0x1c]
push 0x20
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
push 0x800
lea eax, [esp + 0x68]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, edi
add esp, 0x18
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10005ec4
sub ecx, edx
sar ecx, 1
cmp ecx, 6
jbe 0x10005f17
lea eax, [edi - 0xc]
mov edx, 0x1003f6bc
lea eax, [eax + ecx*2]
mov cx, word [eax]
cmp cx, word [edx]
jne 0x10005f09
test cx, cx
je 0x10005f05
mov cx, word [eax + 2]
cmp cx, word [edx + 2]
jne 0x10005f09
add eax, 4
add edx, 4
test cx, cx
jne 0x10005ee3
xor eax, eax
jmp 0x10005f0e
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10005f17
lea ecx, [eax + 1]
jmp 0x10005f19
xor ecx, ecx
lea esi, [esp + 0x18]
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10005f20
sub esi, edx
lea eax, [esp + 0x858]
push eax
sar esi, 1
mov edx, 0x1003e6b4
test ecx, ecx
mov eax, str.Error:
cmove eax, edx
push eax
lea edi, [esi + esi]
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
push eax
push str.P:_04d_T:_04d__s_s
mov eax, 0x3ff
sub eax, esi
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x74]
add eax, edi
push eax
call fcn.10005ff0
add esp, 0x20
test eax, eax
jns 0x10005f92
mov eax, dword [0x1003f704]
mov dword [esp + 0x84e], eax
mov eax, dword [0x1003f708]
mov dword [esp + 0x852], eax
push edi
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x60]
push eax
call sub.VCRUNTIME140.dll_memcpy
lea edi, [esp + 0x64]
add esp, 0xc
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x10005fb0
mov eax, dword [0x1003f70c]
mov dword [edi], eax
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
mov ecx, dword [esp + 0x1058]
pop edi
pop esi
xor ecx, esp
call fcn.1003b4ee
add esp, 0x1054
ret