Function at 0x42de40
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b3d96
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x4ff1a0]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push esi
push edi
mov eax, dword [0x4ff1a0]
xor eax, esp
push eax
lea eax, [esp + 0x120]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x18]
mov esi, dword [ebp + 0xc]
mov edi, ecx
mov ecx, dword [ebp + 0x14]
lea ebx, [edi + 4]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], ebx
mov eax, dword [ebx + 4]
sub eax, 0
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], 0
je 0x42ded5
dec eax
je 0x42deb9
or eax, 0xffffffff
jmp 0x42dee1
mov eax, dword [ebx + 8]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x42dedf
cmp eax, 0x80
je 0x42dedf
or eax, 0xffffffff
jmp 0x42dee1
lea ecx, [ebx + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x128], 0
or ecx, 0xffffffff
cmp eax, ecx
je 0x42e327
cmp byte [edi], 0
jne 0x42df38
mov dword [esp + 0x128], ecx
mov eax, dword [ebx + 4]
sub eax, 0
mov dword [esp + 0x14], ecx
je 0x42df29
dec eax
jne 0x42e32e
mov edx, dword [ebx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x42e32e
add ebx, 8
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x42e32e
push 1
push 2
lea ecx, [esp + 0x34]
call fcn.00419d60
mov byte [esp + 0x128], 1
mov ebx, 1
mov eax, esi
call fcn.0042ee00
push 0xffffffffffffffff
push 0
push esi
lea ecx, [esp + 0xec]
mov ebx, eax
mov dword [esp + 0x100], 0xf
mov dword [esp + 0xfc], 0
mov byte [esp + 0xec], 0
call fcn.0040e860
mov byte [esp + 0x128], 2
test ebx, ebx
jle 0x42e005
push 0xffffffffffffffff
lea eax, [esp + 0xc8]
lea ecx, [ebx + 1]
push eax
mov edx, esi
call fcn.00419c00
mov byte [esp + 0x128], 3
push eax
lea ecx, [esp + 0xe4]
call fcn.0040e5d0
mov byte [esp + 0x128], 2
mov esi, 0x10
cmp dword [esp + 0xd8], esi
jb 0x42dfe5
mov ecx, dword [esp + 0xc4]
push ecx
call fcn.00490458
add esp, 4
mov dword [esp + 0xd8], 0xf
mov dword [esp + 0xd4], 0
mov byte [esp + 0xc4], 0
jmp 0x42e00a
mov esi, 0x10
lea edx, [esp + 0x24]
push edx
call fcn.00493beb
mov eax, dword [esp + 0x24]
add esp, 4
push eax
push ecx
mov edx, dword [esp + 0x24]
push str.__:
push ecx
mov ecx, dword [esp + 0x28]
push ecx
push ecx
push 0x4e1cf8
push ecx
push edx
mov edx, dword [esp + 0x4c]
push ecx
push 0x4e1cfc
push ecx
lea eax, [esp + 0x110]
push eax
push ecx
push 0x4e1d00
push ecx
mov ecx, dword [esp + 0x64]
sub ecx, dword [edi + 0xf0]
lea eax, [esp + 0x6c]
sbb edx, dword [edi + 0xf4]
push edx
push ecx
push str.DEBUG_
push eax
call fcn.0041aa20
add esp, 8
push eax
call fcn.0042e910
add esp, 4
push eax
call fcn.0041aa20
add esp, 0xc
push eax
call fcn.0040c8f0
add esp, 0xc
push eax
call fcn.0041aa20
add esp, 0xc
push eax
call fcn.0042e730
add esp, 4
push eax
call fcn.0041aa20
add esp, 0xc
push eax
call fcn.0040c8f0
add esp, 0xc
push eax
call fcn.0041aa20
add esp, 0xc
push eax
call fcn.0040c8f0
add esp, 8
test byte [edi + 0x44], 1
je 0x42e173
mov ecx, dword [ebp + 8]
cmp ecx, dword [edi + 0xf8]
ja 0x42e173
lea edx, [esp + 0xc4]
push edx
lea ecx, [esp + 0x30]
call fcn.00419e80
mov byte [esp + 0x128], 4
cmp dword [eax + 0x14], esi
jb 0x42e0fc
mov eax, dword [eax]
push eax
lea eax, [edi + 0x48]
push eax
call fcn.0041aa20
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.0040cc60
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
xor ebx, ebx
test byte [eax + esi + 0xc], 6
jne 0x42e139
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x42e139
mov ebx, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test ebx, ebx
je 0x42e15a
mov eax, dword [ecx + 0xc]
or eax, ebx
cmp dword [ecx + 0x38], 0
jne 0x42e152
or eax, 4
push 0
push eax
call fcn.0040dbb0
mov byte [esp + 0x128], 2
lea ecx, [esp + 0xc4]
call fcn.0040f350
mov esi, 0x10
test byte [edi + 0x44], 4
je 0x42e224
mov edx, dword [ebp + 8]
cmp edx, dword [edi + 0xfc]
ja 0x42e224
lea eax, [esp + 0xc4]
push eax
lea ecx, [esp + 0x30]
call fcn.00419e80
mov byte [esp + 0x128], 5
cmp dword [eax + 0x14], esi
jb 0x42e1ac
mov eax, dword [eax]
push eax
push 0x501b48
call fcn.0041aa20
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.0040cc60
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
xor ebx, ebx
test byte [eax + esi + 0xc], 6
jne 0x42e1ea
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x42e1ea
mov ebx, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test ebx, ebx
je 0x42e20b
mov eax, dword [ecx + 0xc]
or eax, ebx
cmp dword [ecx + 0x38], 0
jne 0x42e203
or eax, 4
push 0
push eax
call fcn.0040dbb0
mov byte [esp + 0x128], 2
lea ecx, [esp + 0xc4]
call fcn.0040f350
mov esi, 0x10
test byte [edi + 0x44], 0x10
je 0x42e2a2
mov edx, dword [ebp + 8]
cmp edx, dword [edi + 0x100]
ja 0x42e2a2
lea eax, [esp + 0xfc]
push eax
lea ecx, [esp + 0x30]
call fcn.00419e80
mov byte [esp + 0x128], 6
push eax
lea ecx, [esp + 0xc8]
push ecx
mov edx, 0x4e1d0c
call fcn.00407f80
add esp, 8
mov byte [esp + 0x128], 7
cmp dword [eax + 0x14], esi
jb 0x42e273
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [esp + 0x128], 6
lea ecx, [esp + 0xc4]
call fcn.0040f350
mov byte [esp + 0x128], 2
lea ecx, [esp + 0xfc]
call fcn.0040f350
mov byte [esp + 0x128], 1
cmp dword [esp + 0xf4], esi
jb 0x42e2c3
mov edx, dword [esp + 0xe0]
push edx
call fcn.00490458
add esp, 4
mov dword [esp + 0xf4], 0xf
mov dword [esp + 0xf0], 0
mov byte [esp + 0xe0], 0
mov byte [esp + 0x128], 0
lea ecx, [esp + 0x2c]
call fcn.00418eb0
or eax, 0xffffffff
mov dword [esp + 0x128], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [ecx + 4]
sub eax, 0
je 0x42e31b
dec eax
jne 0x42e32e
mov eax, dword [ecx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x42e32e
add ecx, 8
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x42e32e
mov dword [esp + 0x128], ecx
mov ecx, dword [esp + 0x120]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.004911d1
mov esp, ebp
pop ebp
ret 0x14