Function at 0x51ae2d0
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x5233ea0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53f3c3c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, dword [esp + 0x3c]
test esi, esi
jne 0x51ae304
mov esi, 0x56bc0f8
cmp byte [esi + 0x59], 0
jne 0x51ae317
mov eax, dword [0x56bc0f0]
cmp byte [eax + 0x59], 0
je 0x51ae317
mov esi, eax
lea eax, [esi + 0x5c]
mov dword [esp + 0x3c], eax
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push eax
call edi
mov dword [esp + 0x30], 0
push 0x55bc0d8
mov dword [esp + 0x18], 0x55bc0d8
call edi
mov byte [esp + 0x30], 1
cmp byte [esi + 0x59], 0
je 0x51ae4c4
mov ebx, dword [esp + 0x38]
mov al, byte [ebx + 0xc]
cmp al, byte [esi + 0x5a]
jb 0x51ae4c4
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 4]
mov eax, dword [esp + 0x40]
push ecx
push edx
push eax
push str._s___s:_d_
push 0x80000
push 0x80000
push 0x563c0f0
call dword [sym.imp.MSVCR90.dll__snprintf_s]
add esp, 0x1c
test eax, eax
jl 0x51ae392
cmp eax, 0x80000
jne 0x51ae399
mov byte [0x56bc0ef], 0
lea ecx, [esp + 0x44]
push ecx
push 0x563c0f0
push 0x80000
push 0x80000
push 0x55bc0f0
call dword [sym.imp.MSVCR90.dll__vsnprintf_s]
add esp, 0x14
test eax, eax
jl 0x51ae3c6
cmp eax, 0x80000
jne 0x51ae3cd
mov byte [0x563c0ef], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea edx, [esp + 0x18]
push edx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [esi + 0x54]
test eax, eax
je 0x51ae452
cmp dword [esi + 0x18], 0x10
jb 0x51ae3fa
mov ecx, dword [esi + 4]
jmp 0x51ae3fd
lea ecx, [esi + 4]
mov edx, dword [ebx + 0x10]
push 0x55bc0f0
push edx
movzx edx, word [esp + 0x2c]
push ebp
push edi
push ecx
movzx ecx, word [esp + 0x3a]
push ecx
movzx ecx, word [esp + 0x3a]
push edx
movzx edx, word [esp + 0x3c]
push ecx
movzx ecx, word [esp + 0x38]
push edx
movzx edx, word [esp + 0x42]
sub ecx, 0x7d0
push ecx
movzx ecx, word [esp + 0x42]
push edx
push ecx
push str._02d__02d__02d__02d:_02d:_02d._03d__s__lu___lu_:_s__s_n
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
mov edx, dword [esi + 0x54]
push edx
call dword [sym.imp.MSVCR90.dll_fflush]
add esp, 0x3c
cmp byte [esi + 0x58], 0
je 0x51ae4c4
cmp dword [esi + 0x18], 0x10
jb 0x51ae463
mov esi, dword [esi + 4]
jmp 0x51ae466
add esi, 4
mov eax, dword [ebx + 0x10]
movzx ecx, word [esp + 0x26]
movzx edx, word [esp + 0x24]
push 0x55bc0f0
push eax
movzx eax, word [esp + 0x2a]
push ebp
push edi
push esi
push ecx
movzx ecx, word [esp + 0x38]
push edx
push eax
push ecx
push str._02d:_02d:_02d._03d__s__lu___lu_:_s__s_n
push 0x80000
push 0x80000
push 0x563c0f0
call dword [sym.imp.MSVCR90.dll__snprintf_s]
add esp, 0x34
test eax, eax
jl 0x51ae4b2
cmp eax, 0x80000
jne 0x51ae4b9
mov byte [0x56bc0ef], 0
push 0x563c0f0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [esp + 0x30], 0
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x55bc0d8
call esi
mov dword [esp + 0x30], 0xffffffff
mov edx, dword [esp + 0x3c]
push edx
call esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret