Function at 0x415d00
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4389e6
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x448664]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
push esi
push edi
mov eax, dword [0x448664]
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 0x415d94
dec eax
je 0x415d78
or eax, 0xffffffff
jmp 0x415da0
mov eax, dword [ebx + 8]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x415d9e
cmp eax, 0x80
je 0x415d9e
or eax, 0xffffffff
jmp 0x415da0
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 0x4161e1
cmp byte [edi], 0
jne 0x415df7
mov dword [esp + 0x130], ecx
mov eax, dword [ebx + 4]
sub eax, 0
mov dword [esp + 0x18], ecx
je 0x415de8
dec eax
jne 0x4161e8
mov edx, dword [ebx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x4161e8
add ebx, 8
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4161e8
lea eax, [esp + 0x34]
push eax
call fcn.004102a0
mov byte [esp + 0x130], 1
mov ebx, 1
mov eax, esi
call fcn.00417660
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.00405a50
mov byte [esp + 0x130], 2
test ebx, ebx
jle 0x415ec3
inc ebx
push ebx
lea ecx, [esp + 0xd0]
push ecx
mov ecx, esi
call fcn.00416330
mov byte [esp + 0x130], 3
mov edi, eax
lea esi, [esp + 0xe8]
call fcn.0040c940
mov byte [esp + 0x130], 2
mov esi, 0x10
cmp dword [esp + 0xe0], esi
jb 0x415e9f
mov edx, dword [esp + 0xcc]
push edx
call fcn.0041d491
add esp, 4
mov edi, dword [esp + 0x1c]
mov dword [esp + 0xe0], 0xf
mov dword [esp + 0xdc], 0
mov byte [esp + 0xcc], 0
jmp 0x415ec8
mov esi, 0x10
lea eax, [esp + 0x1c]
push eax
call fcn.0041dc0f
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
add esp, 4
push ecx
mov eax, dword [esp + 0x34]
push ecx
push str.__:
push ecx
push edx
mov edx, dword [esp + 0x30]
sub edx, dword [edi + 0xf0]
push ecx
push 0x43de58
push ecx
push eax
mov eax, dword [esp + 0x44]
sbb eax, dword [edi + 0xf4]
push ecx
push 0x43de5c
push ecx
lea ecx, [esp + 0x118]
push ecx
push ecx
push 0x43de60
push ecx
push eax
push edx
lea ecx, [esp + 0x7c]
push str.DEBUG_
push ecx
call fcn.00412840
add esp, 8
push eax
call fcn.00416760
add esp, 4
push eax
call fcn.00412840
add esp, 0xc
push eax
call fcn.00417db0
add esp, 0xc
push eax
call fcn.00412840
add esp, 0xc
push eax
call fcn.00416580
add esp, 4
push eax
call fcn.00412840
add esp, 0xc
push eax
call fcn.00417db0
add esp, 0xc
push eax
call fcn.00412840
add esp, 0xc
push eax
call fcn.00417db0
add esp, 8
test byte [edi + 0x44], 1
je 0x416031
mov edx, dword [ebp + 0xc]
cmp edx, dword [edi + 0xf8]
ja 0x416031
lea eax, [esp + 0xcc]
push eax
lea ecx, [esp + 0x38]
call fcn.004103a0
mov byte [esp + 0x130], 4
cmp dword [eax + 0x14], esi
jb 0x415fba
mov eax, dword [eax]
push eax
lea ecx, [edi + 0x48]
push ecx
call fcn.00412840
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00416950
mov edx, dword [esi]
mov eax, dword [edx + 4]
xor ebx, ebx
test byte [eax + esi + 0xc], 6
jne 0x415ff7
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x415ff7
mov ebx, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test ebx, ebx
je 0x416018
mov eax, dword [ecx + 0xc]
or eax, ebx
cmp dword [ecx + 0x38], 0
jne 0x416010
or eax, 4
push 0
push eax
call fcn.00402bd0
mov byte [esp + 0x130], 2
lea ecx, [esp + 0xcc]
call fcn.004041a0
mov esi, 0x10
test byte [edi + 0x44], 4
je 0x4160e2
mov edx, dword [ebp + 0xc]
cmp edx, dword [edi + 0xfc]
ja 0x4160e2
lea eax, [esp + 0xcc]
push eax
lea ecx, [esp + 0x38]
call fcn.004103a0
mov byte [esp + 0x130], 5
cmp dword [eax + 0x14], esi
jb 0x41606a
mov eax, dword [eax]
push eax
push 0x44a340
call fcn.00412840
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00416950
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
xor ebx, ebx
test byte [eax + esi + 0xc], 6
jne 0x4160a8
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x4160a8
mov ebx, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test ebx, ebx
je 0x4160c9
mov eax, dword [ecx + 0xc]
or eax, ebx
cmp dword [ecx + 0x38], 0
jne 0x4160c1
or eax, 4
push 0
push eax
call fcn.00402bd0
mov byte [esp + 0x130], 2
lea ecx, [esp + 0xcc]
call fcn.004041a0
mov esi, 0x10
test byte [edi + 0x44], 0x10
je 0x41615c
mov edx, dword [ebp + 0xc]
cmp edx, dword [edi + 0x100]
ja 0x41615c
lea eax, [esp + 0x104]
push eax
lea ecx, [esp + 0x38]
call fcn.004103a0
mov byte [esp + 0x130], 6
lea ecx, [esp + 0xcc]
push ecx
mov ecx, eax
call fcn.00417fe0
add esp, 4
mov byte [esp + 0x130], 7
cmp dword [eax + 0x14], esi
jb 0x41612d
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [esp + 0x130], 6
lea ecx, [esp + 0xcc]
call fcn.004041a0
mov byte [esp + 0x130], 2
lea ecx, [esp + 0x104]
call fcn.004041a0
mov byte [esp + 0x130], 1
cmp dword [esp + 0xfc], esi
jb 0x41617d
mov edx, dword [esp + 0xe8]
push edx
call fcn.0041d491
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.0040ff00
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 0x4161d5
dec eax
jne 0x4161e8
mov eax, dword [ecx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x4161e8
add ecx, 8
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4161e8
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.0041cfa8
mov esp, ebp
pop ebp
ret 0x10