Function at 0x41d8b0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x530010]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
lock inc dword [esi + 8]
mov edi, dword [ebp + 8]
mov dword [esi + 0xc], 1
cmp edi, 0x10e
ja 0x41db70
je 0x41d94d
cmp edi, 0x1c
ja 0x41d932
je 0x41d920
mov eax, edi
sub eax, 6
je 0x41d914
sub eax, 1
je 0x41d90b
sub eax, 1
jne 0x41dbd6
push eax
call fcn.0041e450
jmp 0x41d966
push 1
call fcn.0041e450
jmp 0x41d966
movzx eax, word [ebp + 0xc]
push eax
call fcn.0041e450
jmp 0x41d966
push dword [ebp + 0x10]
lea ecx, [esi + 4]
push dword [ebp + 0xc]
push 0x1c
call fcn.00419880
jmp 0x41d966
mov eax, edi
sub eax, 0x20
je 0x41da4a
sub eax, 0xe0
je 0x41d98f
sub eax, 0xd
jne 0x41dbd6
push 0x519808
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.0041e350
lea ecx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x41d979
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x2c]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00476a44
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp + 0xc]
lea ecx, [esi + 0xec]
call fcn.004305c0
test eax, eax
jne 0x41d966
mov eax, dword [esi + 0xec]
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
test eax, eax
je 0x41da42
call fcn.0041f340
mov edi, eax
mov dword [esp + 0xc], ebx
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x18]
lea ecx, [edi + 0x1c]
push eax
call fcn.0041f4b0
mov ecx, dword [esp + 0x1c]
cmp byte [ecx + 0xd], bl
jne 0x41da3b
mov eax, dword [esp + 0x10]
cmp eax, dword [ecx + 0x10]
jb 0x41da3b
cmp ecx, dword [edi + 0x1c]
je 0x41d9f9
mov eax, dword [ecx + 0x14]
mov dword [esp + 0xc], eax
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x41da42
lea eax, [esp + 0xc]
mov dword [esp + 0xc], ebx
push eax
mov eax, dword [ebp + 0x10]
mov edx, eax
and edx, 0xffff0000
movzx eax, ax
or edx, eax
push edx
push dword [ebp + 0xc]
push 0x100
call fcn.00419910
mov eax, dword [esp + 0xc]
mov dword [esi + 0xc], eax
jmp 0x41d966
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esi + 0xc], ebx
jmp 0x41d966
mov eax, dword [ebp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
movsx ecx, ax
shr eax, 0x10
cwde
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0xe0]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
test eax, eax
je 0x41dacb
call fcn.0041f340
mov edi, eax
xor eax, eax
push edi
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x18]
lea ecx, [edi + 0x1c]
push eax
call fcn.0041f4b0
mov eax, dword [esp + 0x1c]
cmp byte [eax + 0xd], 0
jne 0x41dac8
mov ecx, dword [esp + 0x24]
cmp ecx, dword [eax + 0x10]
jb 0x41dac8
cmp eax, dword [edi + 0x1c]
je 0x41dab9
mov eax, dword [eax + 0x14]
mov dword [esp + 0xc], eax
push edi
call ebx
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x41dacb
mov eax, dword [ecx]
jmp 0x41db38
push edi
call ebx
mov eax, dword [esi + 0xe4]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
test eax, eax
je 0x41db55
call fcn.0041f340
push eax
mov dword [esp + 0x10], eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [ecx + 0x1c]
call fcn.0041f4b0
mov ecx, dword [esp + 0x1c]
cmp byte [ecx + 0xd], 0
jne 0x41db4f
mov eax, dword [esp + 0x28]
cmp eax, dword [ecx + 0x10]
jb 0x41db4f
mov eax, dword [esp + 0xc]
cmp ecx, dword [eax + 0x1c]
je 0x41db24
mov edi, dword [ecx + 0x14]
push eax
call ebx
test edi, edi
je 0x41db55
test byte [edi + 0xa0], 0x10
jne 0x41db55
mov eax, dword [edi]
mov ecx, edi
push dword [esp + 0x10]
push dword [esp + 0x24]
call dword [eax + 0x78]
mov ebx, eax
test ebx, ebx
jne 0x41d966
jmp 0x41db57
push dword [esp + 0xc]
call ebx
xor ebx, ebx
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
jmp 0x41d966
cmp edi, 0x20e
ja 0x41dbbf
je 0x41db93
mov eax, edi
sub eax, 0x10f
je 0x41d94d
sub eax, 0xf1
je 0x41dba4
sub eax, 0xa
jne 0x41dbd6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.0041e1e0
jmp 0x41d966
mov eax, dword [ebp + 0x10]
movsx ecx, ax
shr eax, 0x10
cwde
push eax
push ecx
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0041dd10
jmp 0x41d966
mov eax, edi
sub eax, 0x286
je 0x41d94d
sub eax, 0x1b
je 0x41dc0f
sub eax, 2
je 0x41dc05
lea eax, [edi - 0x100]
cmp eax, 9
jbe 0x41d95a
lea eax, [edi - 0x200]
cmp eax, 0xe
ja 0x41da42
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.0041e030
jmp 0x41d966
call fcn.0041dec0
jmp 0x41d966
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0x2a1
call fcn.0041e030
jmp 0x41d966