Function at 0x47a7d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c0ed6
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 0x47a864
dec eax
je 0x47a848
or eax, 0xffffffff
jmp 0x47a870
mov eax, dword [ebx + 8]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x47a86e
cmp eax, 0x80
je 0x47a86e
or eax, 0xffffffff
jmp 0x47a870
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 0x47acb8
cmp byte [edi], 0
jne 0x47a8c7
mov dword [esp + 0x130], ecx
mov eax, dword [ebx + 4]
sub eax, 0
mov dword [esp + 0x18], ecx
je 0x47a8b8
dec eax
jne 0x47acbf
mov edx, dword [ebx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x47acbf
add ebx, 8
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x47acbf
lea eax, [esp + 0x34]
push eax
call fcn.00411a10
mov byte [esp + 0x130], 1
mov ebx, 1
mov eax, esi
call fcn.0047b440
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.00413260
mov byte [esp + 0x130], 2
test ebx, ebx
jle 0x47a996
push 0xffffffffffffffff
lea edx, [esp + 0xd0]
push edx
lea ecx, [ebx + 1]
mov edx, esi
call fcn.0046fd50
mov byte [esp + 0x130], 3
mov edi, eax
lea esi, [esp + 0xe8]
call fcn.00412f30
mov byte [esp + 0x130], 2
mov esi, 0x10
cmp dword [esp + 0xe0], esi
jb 0x47a972
mov eax, dword [esp + 0xcc]
push eax
call fcn.0049b30a
add esp, 4
mov edi, dword [esp + 0x1c]
mov dword [esp + 0xe0], 0xf
mov dword [esp + 0xdc], 0
mov byte [esp + 0xcc], 0
jmp 0x47a99b
mov esi, 0x10
lea ecx, [esp + 0x1c]
push ecx
call fcn.0049e9f3
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
add esp, 4
push edx
push ecx
push 0x4d8bec
push ecx
push eax
push ecx
mov eax, dword [esp + 0x34]
sub eax, dword [edi + 0xf0]
push 0x4d8bf4
push ecx
mov ecx, dword [esp + 0x50]
push ecx
push ecx
push 0x4d8bf8
push ecx
lea edx, [esp + 0x118]
push edx
push ecx
push 0x4d8bfc
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.00418d30
add esp, 8
push eax
call fcn.0047b0c0
add esp, 4
push eax
call fcn.00418d30
add esp, 0xc
push eax
call fcn.00418f80
add esp, 0xc
push eax
call fcn.00418d30
add esp, 0xc
push eax
call fcn.0040fc20
add esp, 4
push eax
call fcn.00418d30
add esp, 0xc
push eax
call fcn.00418f80
add esp, 0xc
push eax
call fcn.00418d30
add esp, 0xc
push eax
call fcn.00418f80
add esp, 8
test byte [edi + 0x44], 1
je 0x47ab04
mov eax, dword [ebp + 0xc]
cmp eax, dword [edi + 0xf8]
ja 0x47ab04
lea ecx, [esp + 0xcc]
push ecx
lea ecx, [esp + 0x38]
call fcn.00411b10
mov byte [esp + 0x130], 4
cmp dword [eax + 0x14], esi
jb 0x47aa8d
mov eax, dword [eax]
push eax
lea edx, [edi + 0x48]
push edx
call fcn.00418d30
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.0046a100
mov eax, dword [esi]
mov eax, dword [eax + 4]
xor ebx, ebx
test byte [eax + esi + 0xc], 6
jne 0x47aaca
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x47aaca
mov ebx, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test ebx, ebx
je 0x47aaeb
mov eax, dword [ecx + 0xc]
or eax, ebx
cmp dword [ecx + 0x38], 0
jne 0x47aae3
or eax, 4
push 0
push eax
call fcn.004020e0
mov byte [esp + 0x130], 2
lea ecx, [esp + 0xcc]
call fcn.0040fb80
mov esi, 0x10
test byte [edi + 0x44], 4
je 0x47abb5
mov edx, dword [ebp + 0xc]
cmp edx, dword [edi + 0xfc]
ja 0x47abb5
lea eax, [esp + 0xcc]
push eax
lea ecx, [esp + 0x38]
call fcn.00411b10
mov byte [esp + 0x130], 5
cmp dword [eax + 0x14], esi
jb 0x47ab3d
mov eax, dword [eax]
push eax
push 0x4eecd8
call fcn.00418d30
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.0046a100
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
xor ebx, ebx
test byte [eax + esi + 0xc], 6
jne 0x47ab7b
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x47ab7b
mov ebx, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test ebx, ebx
je 0x47ab9c
mov eax, dword [ecx + 0xc]
or eax, ebx
cmp dword [ecx + 0x38], 0
jne 0x47ab94
or eax, 4
push 0
push eax
call fcn.004020e0
mov byte [esp + 0x130], 2
lea ecx, [esp + 0xcc]
call fcn.0040fb80
mov esi, 0x10
test byte [edi + 0x44], 0x10
je 0x47ac33
mov edx, dword [ebp + 0xc]
cmp edx, dword [edi + 0x100]
ja 0x47ac33
lea eax, [esp + 0x104]
push eax
lea ecx, [esp + 0x38]
call fcn.00411b10
mov byte [esp + 0x130], 6
push 0x4d8c08
push eax
lea ecx, [esp + 0xd4]
push ecx
call fcn.00418800
add esp, 0xc
mov byte [esp + 0x130], 7
cmp dword [eax + 0x14], esi
jb 0x47ac04
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [esp + 0x130], 6
lea ecx, [esp + 0xcc]
call fcn.0040fb80
mov byte [esp + 0x130], 2
lea ecx, [esp + 0x104]
call fcn.0040fb80
mov byte [esp + 0x130], 1
cmp dword [esp + 0xfc], esi
jb 0x47ac54
mov edx, dword [esp + 0xe8]
push edx
call fcn.0049b30a
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.00405800
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 0x47acac
dec eax
jne 0x47acbf
mov eax, dword [ecx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x47acbf
add ecx, 8
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x47acbf
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.0049b315
mov esp, ebp
pop ebp
ret 0x10