Function at 0x40d2e0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48ffd0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4bcad4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x14]
mov esi, ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x38], edx
mov dword [ebp - 4], 0
test dword [esi + 0x20], eax
je 0x40d550
lea eax, [esi + 4]
push eax
mov dword [ebp - 0x40], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [ebp - 0x16]
push edx
movzx edx, word [ebp - 0x18]
push edx
movzx edx, word [ebp - 0x1a]
mov ecx, dword [esi + 0x7c]
mov eax, dword [esi + 0x80]
push edx
movzx edx, word [ebp - 0x1c]
push edx
movzx edx, word [ebp - 0x1e]
push edx
movzx edx, word [ebp - 0x22]
push edx
movzx edx, word [ebp - 0x24]
push edx
sub eax, ecx
push str.__04u__02u__02u__02u:_02u:_02u._03u_
push eax
push ecx
call fcn.004779e1
mov ebx, dword [esi + 0x80]
mov edi, eax
mov eax, dword [esi + 0x7c]
sub ebx, eax
add eax, edi
add esp, 0x28
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
mov eax, dword [ebp - 0x2c]
push str.__05d._05d_
sub ebx, edi
push ebx
push eax
call fcn.004779e1
mov ebx, dword [esi + 0x80]
mov ecx, dword [ebp - 0x3c]
add edi, eax
mov eax, dword [esi + 0x7c]
add esp, 0x14
sub ebx, eax
add eax, edi
push ecx
mov ecx, esi
mov dword [ebp - 0x2c], eax
call fcn.0040bce0
mov edx, dword [ebp - 0x2c]
push eax
push 0x4979a8
sub ebx, edi
push ebx
push edx
call fcn.004779e1
mov edx, dword [ebp - 0x44]
add esp, 0x10
add edi, eax
test edx, edx
je 0x40d41f
mov ecx, dword [esi + 0x7c]
mov eax, dword [esi + 0x80]
push edx
sub eax, ecx
push 0x4979a8
sub eax, edi
add ecx, edi
push eax
push ecx
call fcn.004779e1
add esp, 0x10
add edi, eax
mov ecx, dword [esi + 0x7c]
mov eax, dword [esi + 0x80]
sub eax, ecx
push 0x4ad624
push 0x497ad0
sub eax, edi
add ecx, edi
push eax
push ecx
call fcn.004779e1
mov ebx, dword [ebp - 0x30]
add edi, eax
mov eax, dword [ebp - 0x38]
push eax
push ebx
call fcn.00479aae
mov ecx, dword [esi + 0x80]
sub ecx, dword [esi + 0x7c]
lea eax, [eax + edi + 3]
add esp, 0x18
cmp eax, ecx
jbe 0x40d47b
mov ecx, eax
shr ecx, 0xa
test eax, 0x3ff
je 0x40d46f
inc ecx
shl ecx, 0xa
push ecx
lea ecx, [esi + 0x7c]
call fcn.0040c930
mov edx, dword [ebp - 0x38]
mov ecx, dword [esi + 0x7c]
mov eax, dword [esi + 0x80]
push edx
sub eax, ecx
push ebx
push 0xffffffffffffffff
sub eax, edi
add ecx, edi
push eax
push ecx
call fcn.00479a32
mov ebx, dword [ebp - 0x34]
add esp, 0x14
add edi, eax
cmp byte [ebx + 0x1c], 0
mov ecx, 0x4979b0
jne 0x40d4b0
mov ecx, 0x4979b4
mov eax, dword [esi + 0x7c]
push ecx
mov ecx, dword [esi + 0x80]
sub ecx, eax
sub ecx, edi
push ecx
add eax, edi
push eax
call fcn.004779e1
add esp, 0xc
test byte [ebx + 0x24], 1
je 0x40d4e1
mov eax, dword [esi + 0x7c]
push eax
push 0x497ad0
call fcn.004797ba
add esp, 8
test byte [ebx + 0x24], 2
je 0x40d4f1
mov eax, dword [esi + 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test byte [ebx + 0x24], 4
je 0x40d4fe
mov ecx, ebx
call fcn.0040cd80
mov ecx, dword [esi + 0x80]
sub ecx, dword [esi + 0x7c]
mov eax, dword [esi + 0x80]
mov ebx, dword [esi + 0x7c]
mov dword [ebp - 0x30], ecx
mov byte [ebp - 0x25], 0
cmp ebx, eax
je 0x40d535
mov edi, eax
sub edi, eax
push edi
push eax
push ebx
call fcn.004756f0
mov ecx, dword [ebp - 0x30]
add esp, 0xc
add edi, ebx
mov dword [esi + 0x80], edi
mov eax, dword [esi + 0x7c]
lea edx, [ebp - 0x25]
push edx
push ecx
push eax
lea ecx, [esi + 0x7c]
call fcn.0040c690
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004751f1
mov esp, ebp
pop ebp
ret 0x10