Function at 0x461d60
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x49fed6
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x4bf6bc]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
push esi
push edi
mov eax, dword [0x4bf6bc]
xor eax, esp
push eax
lea eax, [esp + 0x128]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
lea ebx, [edi + 4]
mov dword [esp + 0x30], eax
mov dword [esp + 0x14], ebx
mov eax, dword [ebx + 4]
sub eax, 0
mov dword [esp + 0x1c], edi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x18], 0
je 0x461df4
dec eax
je 0x461dd8
or eax, 0xffffffff
jmp 0x461e00
mov eax, dword [ebx + 8]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x461dfe
cmp eax, 0x80
je 0x461dfe
or eax, 0xffffffff
jmp 0x461e00
lea ecx, [ebx + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x130], 0
or ecx, 0xffffffff
cmp eax, ecx
je 0x46224d
cmp byte [edi], 0
jne 0x461e57
mov dword [esp + 0x130], ecx
mov eax, dword [ebx + 4]
sub eax, 0
mov dword [esp + 0x18], ecx
je 0x461e48
dec eax
jne 0x462254
mov edx, dword [ebx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x462254
add ebx, 8
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x462254
lea eax, [esp + 0x34]
push eax
call fcn.00406410
mov byte [esp + 0x130], 1
push 0x4b2508
mov ebx, 1
mov eax, esi
call fcn.00407560
push 0xffffffffffffffff
push 0
push esi
lea ecx, [esp + 0xf4]
mov ebx, eax
mov dword [esp + 0x108], 0xf
mov dword [esp + 0x104], 0
mov byte [esp + 0xf4], 0
call fcn.00407280
mov byte [esp + 0x130], 2
test ebx, ebx
jle 0x461f2b
push 0xffffffffffffffff
lea edx, [esp + 0xd0]
push edx
lea ecx, [ebx + 1]
mov edx, esi
call fcn.004623a0
mov byte [esp + 0x130], 3
mov edi, eax
lea esi, [esp + 0xe8]
call fcn.00407000
mov byte [esp + 0x130], 2
mov esi, 0x10
cmp dword [esp + 0xe0], esi
jb 0x461f07
mov eax, dword [esp + 0xcc]
push eax
call fcn.0047bd91
add esp, 4
mov edi, dword [esp + 0x1c]
mov dword [esp + 0xe0], 0xf
mov dword [esp + 0xdc], 0
mov byte [esp + 0xcc], 0
jmp 0x461f30
mov esi, 0x10
lea ecx, [esp + 0x1c]
push ecx
call fcn.0047f65c
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
add esp, 4
push edx
push ecx
push str.__:
push ecx
push eax
push ecx
mov eax, dword [esp + 0x34]
sub eax, dword [edi + 0xf0]
push 0x4b2514
push ecx
mov ecx, dword [esp + 0x50]
push ecx
push ecx
push 0x4b2518
push ecx
lea edx, [esp + 0x118]
push edx
push ecx
push 0x4b251c
push ecx
mov ecx, dword [esp + 0x60]
sbb ecx, dword [edi + 0xf4]
lea edx, [esp + 0x74]
push ecx
push eax
push str.DEBUG_
push edx
call fcn.00409300
add esp, 8
push eax
call fcn.004625f0
add esp, 4
push eax
call fcn.00409300
add esp, 0xc
push eax
call fcn.00409550
add esp, 0xc
push eax
call fcn.00409300
add esp, 0xc
push eax
call fcn.0040d140
add esp, 4
push eax
call fcn.00409300
add esp, 0xc
push eax
call fcn.00409550
add esp, 0xc
push eax
call fcn.00409300
add esp, 0xc
push eax
call fcn.00409550
add esp, 8
test byte [edi + 0x44], 1
je 0x462099
mov eax, dword [ebp + 0xc]
cmp eax, dword [edi + 0xf8]
ja 0x462099
lea ecx, [esp + 0xcc]
push ecx
lea ecx, [esp + 0x38]
call fcn.00406510
mov byte [esp + 0x130], 4
cmp dword [eax + 0x14], esi
jb 0x462022
mov eax, dword [eax]
push eax
lea edx, [edi + 0x48]
push edx
call fcn.00409300
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.0045cdc0
mov eax, dword [esi]
mov eax, dword [eax + 4]
xor ebx, ebx
test byte [eax + esi + 0xc], 6
jne 0x46205f
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x46205f
mov ebx, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test ebx, ebx
je 0x462080
mov eax, dword [ecx + 0xc]
or eax, ebx
cmp dword [ecx + 0x38], 0
jne 0x462078
or eax, 4
push 0
push eax
call fcn.00402030
mov byte [esp + 0x130], 2
lea ecx, [esp + 0xcc]
call fcn.00404fe0
mov esi, 0x10
test byte [edi + 0x44], 4
je 0x46214a
mov edx, dword [ebp + 0xc]
cmp edx, dword [edi + 0xfc]
ja 0x46214a
lea eax, [esp + 0xcc]
push eax
lea ecx, [esp + 0x38]
call fcn.00406510
mov byte [esp + 0x130], 5
cmp dword [eax + 0x14], esi
jb 0x4620d2
mov eax, dword [eax]
push eax
push 0x4c2900
call fcn.00409300
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.0045cdc0
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
xor ebx, ebx
test byte [eax + esi + 0xc], 6
jne 0x462110
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x462110
mov ebx, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test ebx, ebx
je 0x462131
mov eax, dword [ecx + 0xc]
or eax, ebx
cmp dword [ecx + 0x38], 0
jne 0x462129
or eax, 4
push 0
push eax
call fcn.00402030
mov byte [esp + 0x130], 2
lea ecx, [esp + 0xcc]
call fcn.00404fe0
mov esi, 0x10
test byte [edi + 0x44], 0x10
je 0x4621c8
mov edx, dword [ebp + 0xc]
cmp edx, dword [edi + 0x100]
ja 0x4621c8
lea eax, [esp + 0x104]
push eax
lea ecx, [esp + 0x38]
call fcn.00406510
mov byte [esp + 0x130], 6
push 0x4b2528
push eax
lea ecx, [esp + 0xd4]
push ecx
call fcn.00459700
add esp, 0xc
mov byte [esp + 0x130], 7
cmp dword [eax + 0x14], esi
jb 0x462199
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [esp + 0x130], 6
lea ecx, [esp + 0xcc]
call fcn.00404fe0
mov byte [esp + 0x130], 2
lea ecx, [esp + 0x104]
call fcn.00404fe0
mov byte [esp + 0x130], 1
cmp dword [esp + 0xfc], esi
jb 0x4621e9
mov edx, dword [esp + 0xe8]
push edx
call fcn.0047bd91
add esp, 4
mov dword [esp + 0xfc], 0xf
mov dword [esp + 0xf8], 0
mov byte [esp + 0xe8], 0
mov byte [esp + 0x130], 0
lea ecx, [esp + 0x34]
call fcn.00403a40
or eax, 0xffffffff
mov dword [esp + 0x130], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 4]
sub eax, 0
je 0x462241
dec eax
jne 0x462254
mov eax, dword [ecx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x462254
add ecx, 8
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x462254
mov dword [esp + 0x130], ecx
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0047bd9c
mov esp, ebp
pop ebp
ret 0x10