Function at 0x407910
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d03e7
mov eax, dword fs:[0]
push eax
sub esp, 0x890
mov eax, dword [0x508164]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x88c], eax
lea esi, [ebx + 0x3c]
push esi
mov dword [ebp - 0x890], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
cmp eax, dword [ebx]
jg 0x407c53
cmp byte [ebx + 4], 0
je 0x407b19
mov ecx, ebx
call fcn.004082f0
mov edi, eax
mov dword [ebp - 0x884], edi
test edi, edi
je 0x407c53
push 0x4ea06c
push 0
call fcn.004b180c
add esp, 8
cmp byte [ebx + 5], 0
je 0x407a8e
push ecx
lea eax, [ebp - 0x888]
push eax
lea ecx, [ebp - 0x898]
call fcn.0040b4e0
mov ecx, eax
call fcn.0040bdd0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x87c]
push dword [eax]
call fcn.00408080
mov edi, eax
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.00409770
cmp dword [edi + 0x14], 0x10
jb 0x4079ed
mov edi, dword [edi]
push edi
lea ecx, [ebp - 0x880]
call fcn.00408480
lea ecx, [ebp - 0x84c]
mov byte [ebp - 4], 4
call fcn.0040c2c0
push fcn.0040e540
push 2
push 0x18
lea eax, [ebp - 0x87c]
push eax
call fcn.0048dbcc
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov edx, dword [ebp - 0x888]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407a3f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp + 0xc]
mov edi, dword [ebp - 0x880]
push dword [ebp + 0x14]
push dword [ebp - 0x88c]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push dword [ebx + 0x38]
push edi
mov edi, dword [ebp - 0x884]
push str._s___d__d___s__d__LEVEL_d_
push edi
call fcn.0040b4c0
mov edx, dword [ebp - 0x880]
add esp, 0x20
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407a8e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebx + 0x18], 0
je 0x407af1
lea eax, [ebx + 8]
push eax
lea ecx, [ebp - 0x87c]
call fcn.00408390
mov edi, eax
mov ecx, edi
mov byte [ebp - 4], 5
call fcn.00409770
cmp dword [edi + 0x14], 0x10
jb 0x407ab8
mov edi, dword [edi]
push edi
mov edi, dword [ebp - 0x884]
push 0x4ea0b0
push edi
call fcn.0040b4c0
add esp, 0xc
lea ecx, [ebp - 0x84c]
mov byte [ebp - 4], 6
call fcn.0040c2c0
push fcn.0040e540
push 2
push 0x18
lea eax, [ebp - 0x87c]
push eax
call fcn.0048dbcc
mov edx, dword [ebp + 0x18]
lea eax, [ebp + 0x1c]
push eax
push ecx
mov ecx, edi
call fcn.0040b490
push 0x4ea1e4
push edi
call fcn.0040b4c0
push edi
call fcn.004af74b
add esp, 0x14
jmp 0x407c53
push 0x800
lea eax, [ebp - 0x81c]
push 0
push eax
call fcn.004a5f00
mov eax, dword [ebx + 0x18]
add esp, 0xc
mov edi, 0x800
test eax, eax
je 0x407c24
cmp eax, 0x64
jae 0x407c24
lea eax, [ebx + 8]
push eax
lea ecx, [ebp - 0x87c]
call fcn.00408390
mov edi, eax
mov ecx, edi
mov byte [ebp - 4], 7
call fcn.00409770
cmp dword [edi + 0x14], 0x10
jb 0x407b6c
mov edi, dword [edi]
push edi
lea ecx, [ebp - 0x834]
call fcn.0040e300
lea ecx, [ebp - 0x84c]
mov byte [ebp - 4], 8
call fcn.0040c2c0
push fcn.0040e540
push 2
push 0x18
lea eax, [ebp - 0x87c]
push eax
call fcn.0048dbcc
cmp dword [ebp - 0x820], 0x10
lea eax, [ebp - 0x834]
push dword [ebp - 0x824]
cmovae eax, dword [ebp - 0x834]
lea ecx, [ebp - 0x81c]
mov edi, 0x800
push eax
mov edx, edi
call fcn.0040b9f0
sub edi, dword [ebp - 0x824]
lea ebx, [ebp - 0x81c]
add ebx, dword [ebp - 0x824]
add esp, 8
mov edx, dword [ebp - 0x820]
cmp edx, 0x10
jb 0x407c2a
mov ecx, dword [ebp - 0x834]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x407c0a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407c76
push edx
push ecx
call fcn.0048d8eb
add esp, 8
jmp 0x407c2a
lea ebx, [ebp - 0x81c]
lea eax, [ebp + 0x1c]
push eax
push 0
push dword [ebp + 0x18]
push edi
push ebx
call fcn.0040b450
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebp - 0x81c]
add esp, 0x14
push eax
call edi
push 0x4ea1e4
call edi
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0048d8b2
mov esp, ebp
pop ebp
ret
call fcn.004b0023
int3