Function at 0x409e40
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48cea0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4b8914]
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 0x40a0b0
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.00473771
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.00473771
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.00408740
mov edx, dword [ebp - 0x2c]
push eax
push 0x4949a8
sub ebx, edi
push ebx
push edx
call fcn.00473771
mov edx, dword [ebp - 0x44]
add esp, 0x10
add edi, eax
test edx, edx
je 0x409f7f
mov ecx, dword [esi + 0x7c]
mov eax, dword [esi + 0x80]
push edx
sub eax, ecx
push 0x4949a8
sub eax, edi
add ecx, edi
push eax
push ecx
call fcn.00473771
add esp, 0x10
add edi, eax
mov ecx, dword [esi + 0x7c]
mov eax, dword [esi + 0x80]
sub eax, ecx
push 0x4aa590
push 0x494ad4
sub eax, edi
add ecx, edi
push eax
push ecx
call fcn.00473771
mov ebx, dword [ebp - 0x30]
add edi, eax
mov eax, dword [ebp - 0x38]
push eax
push ebx
call fcn.004758ae
mov ecx, dword [esi + 0x80]
sub ecx, dword [esi + 0x7c]
lea eax, [eax + edi + 3]
add esp, 0x18
cmp eax, ecx
jbe 0x409fdb
mov ecx, eax
shr ecx, 0xa
test eax, 0x3ff
je 0x409fcf
inc ecx
shl ecx, 0xa
push ecx
lea ecx, [esi + 0x7c]
call fcn.00409450
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.00475832
mov ebx, dword [ebp - 0x34]
add esp, 0x14
add edi, eax
cmp byte [ebx + 0x1c], 0
mov ecx, 0x4949b0
jne 0x40a010
mov ecx, 0x4949b4
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.00473771
add esp, 0xc
test byte [ebx + 0x24], 1
je 0x40a041
mov eax, dword [esi + 0x7c]
push eax
push 0x494ad4
call fcn.004755ba
add esp, 8
test byte [ebx + 0x24], 2
je 0x40a051
mov eax, dword [esi + 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test byte [ebx + 0x24], 4
je 0x40a05e
mov ecx, ebx
call fcn.004098e0
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 0x40a095
mov edi, eax
sub edi, eax
push edi
push eax
push ebx
call fcn.00471a30
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.004091b0
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.00471528
mov esp, ebp
pop ebp
ret 0x10