Function at 0x4713e0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c17e6
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x4eb6b8]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
push esi
push edi
mov eax, dword [0x4eb6b8]
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 0x471474
dec eax
je 0x471458
or eax, 0xffffffff
jmp 0x471480
mov eax, dword [ebx + 8]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x47147e
cmp eax, 0x80
je 0x47147e
or eax, 0xffffffff
jmp 0x471480
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 0x4718c8
cmp byte [edi], 0
jne 0x4714d7
mov dword [esp + 0x130], ecx
mov eax, dword [ebx + 4]
sub eax, 0
mov dword [esp + 0x18], ecx
je 0x4714c8
dec eax
jne 0x4718cf
mov edx, dword [ebx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x4718cf
add ebx, 8
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4718cf
lea eax, [esp + 0x34]
push eax
call fcn.004136d0
mov byte [esp + 0x130], 1
mov ebx, 1
mov eax, esi
call fcn.00471f80
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.00416180
mov byte [esp + 0x130], 2
test ebx, ebx
jle 0x4715a6
push 0xffffffffffffffff
lea edx, [esp + 0xd0]
push edx
lea ecx, [ebx + 1]
mov edx, esi
call fcn.00470970
mov byte [esp + 0x130], 3
mov edi, eax
lea esi, [esp + 0xe8]
call fcn.00416060
mov byte [esp + 0x130], 2
mov esi, 0x10
cmp dword [esp + 0xe0], esi
jb 0x471582
mov eax, dword [esp + 0xcc]
push eax
call fcn.0049ca60
add esp, 4
mov edi, dword [esp + 0x1c]
mov dword [esp + 0xe0], 0xf
mov dword [esp + 0xdc], 0
mov byte [esp + 0xcc], 0
jmp 0x4715ab
mov esi, 0x10
lea ecx, [esp + 0x1c]
push ecx
call fcn.004a028b
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
add esp, 4
push edx
push ecx
push 0x4d93c8
push ecx
push eax
push ecx
mov eax, dword [esp + 0x34]
sub eax, dword [edi + 0xf0]
push 0x4d93d0
push ecx
mov ecx, dword [esp + 0x50]
push ecx
push ecx
push 0x4d93d4
push ecx
lea edx, [esp + 0x118]
push edx
push ecx
push 0x4d93d8
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.0041c580
add esp, 8
push eax
call fcn.00471c00
add esp, 4
push eax
call fcn.0041c580
add esp, 0xc
push eax
call fcn.0041dac0
add esp, 0xc
push eax
call fcn.0041c580
add esp, 0xc
push eax
call fcn.00411ce0
add esp, 4
push eax
call fcn.0041c580
add esp, 0xc
push eax
call fcn.0041dac0
add esp, 0xc
push eax
call fcn.0041c580
add esp, 0xc
push eax
call fcn.0041dac0
add esp, 8
test byte [edi + 0x44], 1
je 0x471714
mov eax, dword [ebp + 0xc]
cmp eax, dword [edi + 0xf8]
ja 0x471714
lea ecx, [esp + 0xcc]
push ecx
lea ecx, [esp + 0x38]
call fcn.004137d0
mov byte [esp + 0x130], 4
cmp dword [eax + 0x14], esi
jb 0x47169d
mov eax, dword [eax]
push eax
lea edx, [edi + 0x48]
push edx
call fcn.0041c580
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00411ec0
mov eax, dword [esi]
mov eax, dword [eax + 4]
xor ebx, ebx
test byte [eax + esi + 0xc], 6
jne 0x4716da
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x4716da
mov ebx, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test ebx, ebx
je 0x4716fb
mov eax, dword [ecx + 0xc]
or eax, ebx
cmp dword [ecx + 0x38], 0
jne 0x4716f3
or eax, 4
push 0
push eax
call fcn.004021a0
mov byte [esp + 0x130], 2
lea ecx, [esp + 0xcc]
call fcn.00411a90
mov esi, 0x10
test byte [edi + 0x44], 4
je 0x4717c5
mov edx, dword [ebp + 0xc]
cmp edx, dword [edi + 0xfc]
ja 0x4717c5
lea eax, [esp + 0xcc]
push eax
lea ecx, [esp + 0x38]
call fcn.004137d0
mov byte [esp + 0x130], 5
cmp dword [eax + 0x14], esi
jb 0x47174d
mov eax, dword [eax]
push eax
push 0x4eeeb8
call fcn.0041c580
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00411ec0
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
xor ebx, ebx
test byte [eax + esi + 0xc], 6
jne 0x47178b
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x47178b
mov ebx, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test ebx, ebx
je 0x4717ac
mov eax, dword [ecx + 0xc]
or eax, ebx
cmp dword [ecx + 0x38], 0
jne 0x4717a4
or eax, 4
push 0
push eax
call fcn.004021a0
mov byte [esp + 0x130], 2
lea ecx, [esp + 0xcc]
call fcn.00411a90
mov esi, 0x10
test byte [edi + 0x44], 0x10
je 0x471843
mov edx, dword [ebp + 0xc]
cmp edx, dword [edi + 0x100]
ja 0x471843
lea eax, [esp + 0x104]
push eax
lea ecx, [esp + 0x38]
call fcn.004137d0
mov byte [esp + 0x130], 6
push 0x4d93e4
push eax
lea ecx, [esp + 0xd4]
push ecx
call fcn.004721c0
add esp, 0xc
mov byte [esp + 0x130], 7
cmp dword [eax + 0x14], esi
jb 0x471814
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [esp + 0x130], 6
lea ecx, [esp + 0xcc]
call fcn.00411a90
mov byte [esp + 0x130], 2
lea ecx, [esp + 0x104]
call fcn.00411a90
mov byte [esp + 0x130], 1
cmp dword [esp + 0xfc], esi
jb 0x471864
mov edx, dword [esp + 0xe8]
push edx
call fcn.0049ca60
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.004030b0
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 0x4718bc
dec eax
jne 0x4718cf
mov eax, dword [ecx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x4718cf
add ecx, 8
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4718cf
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.0049ca6b
mov esp, ebp
pop ebp
ret 0x10