Function at 0x40dc30
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41fcfc
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x42a010]
xor eax, esp
mov dword [esp + 0xa4], eax
push esi
push edi
mov eax, dword [0x42a010]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], ecx
cmp dword [0x42ccb8], 0
mov eax, dword [ebp + 8]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x14], eax
jne 0x40dc99
xor ecx, ecx
call fcn.0040d780
mov eax, dword [esp + 0x14]
mov esi, dword [ebp + 0xc]
cmp esi, dword [0x42ca98]
jge 0x40dcab
xor eax, eax
jmp 0x40df47
mov ecx, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40dcb0
sub ecx, edx
mov edx, 2
sar ecx, 1
lea eax, [ecx + 0x100]
xor ecx, ecx
mov dword [esp + 0xc], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040ebc6
mov edi, eax
add esp, 4
mov dword [esp + 0x20], edi
test edi, edi
je 0x40dca4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40dd05
mov ecx, eax
xor eax, eax
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
xor eax, eax
push 0x3e
push eax
mov word [esp + 0x74], ax
lea eax, [esp + 0x76]
push eax
call fcn.00411600
movzx eax, word [esp + 0x56]
add esp, 0xc
push eax
movzx eax, word [esp + 0x4c]
push eax
movzx eax, word [esp + 0x4e]
push eax
movzx eax, word [esp + 0x50]
push eax
movzx eax, word [esp + 0x52]
push eax
movzx eax, word [esp + 0x52]
push eax
movzx eax, word [esp + 0x54]
push eax
push str._04d__02d__02d__02d:_02d:_02d:_03d
lea eax, [esp + 0x8c]
push 0x1f
push eax
call fcn.00401a80
xor eax, eax
xorps xmm0, xmm0
add esp, 0x28
mov word [esp + 0x4c], ax
movq qword [esp + 0x5e], xmm0
mov dword [esp + 0x66], eax
mov word [esp + 0x6a], ax
movdqu xmmword [esp + 0x4e], xmm0
cmp esi, 3
ja case.default.0x40dd8c
jmp dword [esi*4 + 0x40df6c]
push str._INFO
jmp 0x40ddb4
push str._DEBUG
jmp 0x40ddb4
push str._WARN
jmp 0x40ddb4
push str._FATAL
jmp 0x40ddb4
push str._UNKNOWN
mov edx, 0x10
lea ecx, [esp + 0x50]
call fcn.00401990
push dword [esp + 0x14]
mov ecx, dword [0x42ccac]
mov edx, 0x427364
test ecx, ecx
mov esi, 0x4259a0
mov ecx, dword [0x42ccb0]
mov eax, edx
cmove eax, esi
push eax
mov eax, esi
cmovne eax, dword [esp + 0x24]
test ecx, ecx
push eax
mov eax, edx
cmove eax, esi
push eax
xor eax, eax
test ecx, ecx
cmovne eax, dword [esp + 0x28]
push eax
mov eax, dword [0x42ccb4]
test eax, eax
lea eax, [esp + 0x60]
cmove edx, esi
cmovne esi, dword [esp + 0x24]
push edx
push esi
push eax
lea eax, [esp + 0x8c]
push eax
mov eax, dword [esp + 0x30]
push 0x427368
dec eax
push eax
push edi
call fcn.00401a80
add esp, 0x30
cmp dword [0x42ca9c], 0
je 0x40de40
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x42ccc8
mov dword [esp + 0x14], 0x42ccc8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x42caa0
lea ecx, [esp + 0x28]
mov dword [esp + 0xc4], 0
call fcn.00401930
mov byte [esp + 0xc0], 1
cmp dword [eax + 0x14], 8
jb 0x40de7c
mov eax, dword [eax]
sub esp, 8
mov ecx, eax
call fcn.0040b210
add esp, 8
mov byte [esp + 0xc0], 0
cmp dword [esp + 0x38], 8
jb 0x40dea4
push dword [esp + 0x24]
call fcn.0040ed3b
add esp, 4
push 0x42caa0
lea ecx, [esp + 0x28]
call fcn.00401930
mov byte [esp + 0xc0], 2
cmp dword [eax + 0x14], 8
jb 0x40dec2
mov eax, dword [eax]
mov edx, edi
mov ecx, eax
call fcn.0040a990
mov byte [esp + 0xc0], 0
mov esi, eax
cmp dword [esp + 0x38], 8
jb 0x40dee8
push dword [esp + 0x24]
call fcn.0040ed3b
add esp, 4
test esi, esi
jne 0x40df31
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40df31
lea ecx, [esi + 1]
call fcn.0040d780
push 0x42caa0
lea ecx, [esp + 0x28]
call fcn.00401930
mov byte [esp + 0xc0], 3
cmp dword [eax + 0x14], 8
jb 0x40df1d
mov eax, dword [eax]
mov edx, edi
mov ecx, eax
call fcn.0040a990
lea ecx, [esp + 0x24]
mov esi, eax
call fcn.00401460
push 0x42ccc8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call fcn.0040f764
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.0040ed40
mov esp, ebp
pop ebp
ret