Function at 0x40d19e
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x28]
push ebx
push esi
xor esi, esi
mov dword [esp + 0xc], edx
mov word [eax], si
xor ebx, ebx
mov eax, dword [ebp + 0x30]
push edi
xor edi, edi
mov dword [esp + 0x14], ecx
mov byte [eax], bl
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x38]
mov esi, dword [eax]
mov dword [ebx + 8], esi
mov eax, dword [eax + 4]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp + 0x18]
sub eax, edi
je 0x40d22e
sub eax, 1
je 0x40d225
sub eax, 1
je 0x40d1f4
sub eax, 1
jne 0x40d237
push esi
call fcn.0040db61
jmp 0x40d235
test esi, esi
js 0x40d21c
mov esi, 0x8007029c
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040bdfb
mov ecx, esi
mov dword [ebx + 8], esi
call fcn.0040cdef
mov dword [ebx + 0xc], eax
mov ecx, esi
call fcn.0040dca3
jmp 0x40d235
mov ecx, esi
call fcn.0040dcbc
jmp 0x40d235
mov ecx, esi
call fcn.0040db48
mov edi, eax
mov eax, dword [ebp + 0x18]
xor ecx, ecx
mov dword [ebx], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebx + 4], ecx
cmp byte [eax + 8], cl
je 0x40d250
mov dword [ebx + 4], 8
xor eax, eax
inc eax
lock xadd dword [0x41b60c], eax
inc eax
mov dword [ebx + 0x10], eax
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x40d26b
cmp word [eax], cx
jne 0x40d26d
mov eax, ecx
mov dword [ebx + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebx + 0x18], eax
xor edx, edx
mov eax, dword [ebp + 8]
mov dword [ebx + 0x24], eax
mov eax, dword [esp + 0x10]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x20], eax
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0x50], eax
mov eax, dword [esp + 0x14]
mov dword [ebx + 0x2c], edi
lea edi, [ebx + 0x34]
mov dword [ebx + 0x54], eax
xor eax, eax
push 6
pop ecx
mov dword [ebx + 0x30], edx
rep stosd dword es:[edi], eax
mov edi, dword [0x41b694]
test edi, edi
je 0x40d2d2
mov ecx, edi
call dword [0x41c348]
mov esi, esp
call edi
cmp esi, esp
je 0x40d2d2
mov ecx, 4
int 0x29
mov edi, dword [0x41b664]
mov dword [ebx + 0x4c], eax
test edi, edi
je 0x40d2f7
mov esi, esp
mov ecx, edi
push ebx
call dword [0x41c348]
call edi
cmp esi, esp
je 0x40d2f7
mov ecx, 4
int 0x29
mov edi, dword [0x41b678]
test edi, edi
je 0x40d321
mov esi, esp
mov ecx, edi
push 0x400
push dword [ebp + 0x30]
push ebx
call dword [0x41c348]
call edi
cmp esi, esp
je 0x40d321
mov ecx, 4
int 0x29
mov edi, dword [0x41b670]
test edi, edi
je 0x40d343
mov esi, esp
mov ecx, edi
push ebx
call dword [0x41c348]
call edi
cmp esi, esp
je 0x40d343
mov ecx, 4
int 0x29
mov edi, dword [0x41b684]
test edi, edi
je 0x40d36b
test byte [ebx + 4], 2
jne 0x40d36b
mov esi, esp
mov ecx, edi
push ebx
call dword [0x41c348]
call edi
cmp esi, esp
je 0x40d36b
mov ecx, 4
int 0x29
xor eax, eax
cmp dword [ebx + 8], eax
jl 0x40d38c
cmp dword [ebp + 0x18], 3
jne 0x40d456
mov ecx, 0x8000ffff
mov dword [ebx + 8], ecx
call fcn.0040cdef
mov dword [ebx + 0xc], eax
call fcn.0040cfe7
test al, al
je 0x40d3ee
test byte [ebx + 4], 2
jne 0x40d3ee
mov edi, dword [0x41b65c]
test edi, edi
je 0x40d3ce
cmp byte [0x41b668], 0
jne 0x40d3ce
mov esi, esp
mov ecx, edi
push 0x800
push dword [ebp + 0x28]
push ebx
call dword [0x41c348]
call edi
cmp esi, esp
je 0x40d3ce
mov ecx, 4
int 0x29
mov esi, dword [ebp + 0x28]
xor eax, eax
cmp word [esi], ax
jne 0x40d3e5
push ebx
mov edx, 0x800
mov ecx, esi
call fcn.0040c95c
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x40d41d
mov edi, dword [0x41b65c]
test edi, edi
je 0x40d41d
cmp byte [0x41b668], 0
jne 0x40d41d
mov esi, esp
xor eax, eax
push eax
push eax
push ebx
mov ecx, edi
call dword [0x41c348]
call edi
cmp esi, esp
je 0x40d41d
mov ecx, 4
int 0x29
test byte [ebx + 4], 4
jne 0x40d42c
cmp byte [0x41b660], 0
je 0x40d44d
mov edi, dword [0x41b680]
test edi, edi
je 0x40d44d
mov ecx, edi
call dword [0x41c348]
mov esi, esp
call edi
cmp esi, esp
je 0x40d44d
mov ecx, 4
int 0x29
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x34
call fcn.0040ec36
int3