Function at 0x40e070
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x535341
mov eax, dword fs:[0]
push eax
sub esp, 0x920
mov eax, dword [0x588c64]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
test ecx, ecx
je 0x40e0ca
mov eax, dword [esi + 8]
test eax, eax
je 0x40e0ca
cmp dword [eax + 4], 0
je 0x40e0ca
mov eax, dword [eax + 4]
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
lea edi, [ebp + 0x14]
push edi
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, eax
call edx
cmp byte [esi + 0x10], 0
je 0x40e2ae
call fcn.00412a4b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40e0ee
push 0x80004005
call fcn.00402980
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x92c], eax
lea ecx, [ebp + 0x14]
push ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x890]
push 0x3ff
push eax
call fcn.00511a27
add esp, 0x10
test eax, eax
js 0x40e13b
cmp eax, 0x3ff
ja 0x40e13b
jne 0x40e144
xor ecx, ecx
mov word [ebp - 0x92], cx
jmp 0x40e144
xor edx, edx
mov word [ebp - 0x92], dx
lea eax, [ebp - 0x890]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e150
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x890]
push eax
lea ecx, [ebp - 0x92c]
call fcn.004028d0
mov edx, dword [ebp - 0x92c]
push 3
push edx
lea eax, [ebp - 0x924]
lea ecx, [ebp - 0x920]
push eax
mov dword [ebp - 0x924], ecx
call fcn.0040e410
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x924]
lea esi, [ebp - 0x928]
call fcn.0040de20
test eax, eax
js 0x40e26c
lea ecx, [ebp - 0x928]
push ecx
mov ecx, dword [ebp - 0x924]
call fcn.0040e340
lea edx, [ebp - 0x8a0]
push edx
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x80
lea eax, [ebp - 0x90]
push eax
push 0
lea ecx, [ebp - 0x8a0]
push ecx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
sub esp, 0x84
mov edi, esp
push eax
push ebx
lea edx, [ebp - 0x90]
mov ecx, 0x21
lea esi, [ebp - 0x924]
push edx
rep movsd dword es:[edi], dword [esi]
push str._s_:__0x_X_0x_X___s
lea edi, [ebp - 0x928]
call fcn.0040e7c0
mov eax, dword [ebp - 0x928]
add esp, 0x94
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x928]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e26c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x924]
lea ecx, [ebp - 0x920]
cmp eax, ecx
je 0x40e285
push eax
call fcn.00511a44
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x92c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e2ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00510aec
mov esp, ebp
pop ebp
ret