Function at 0x40d2e0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x421d52
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4d0
mov eax, dword [0x42c17c]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [0x42e9dc]
mov dword [esp + 0x4d4], eax
mov eax, dword [edi + 4]
lea edx, [eax + ecx*2]
push edx
push 0x4268c4
push str._s_s
lea eax, [esp + 0x2dc]
push 0xff
push eax
call fcn.0041651d
mov eax, dword [0x42d058]
xor esi, esi
add esp, 0x14
cmp eax, esi
jne 0x40d58f
mov word [esp + 0xd0], si
xor eax, eax
mov ecx, 0x7f
lea edi, [esp + 0xd2]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call fcn.004036f0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x426898
lea ecx, [esp + 0xdc]
push 0x100
push ecx
call fcn.0041651d
mov edi, 7
push 0x424b98
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], esi
mov word [esp + 0x44], si
call fcn.0041630e
add esp, 0x18
push eax
push 0x424b98
lea ecx, [esp + 0x30]
call fcn.00406560
lea edx, [esp + 0xd0]
push edx
mov dword [esp + 0x4e8], esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], esi
mov word [esp + 0x14], si
call fcn.0041630e
add esp, 4
push eax
lea eax, [esp + 0xd4]
push eax
lea ecx, [esp + 0x14]
call fcn.00406560
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x68]
push eax
mov byte [esp + 0x4f0], 1
call fcn.004067d0
lea ecx, [esp + 0x2dc]
push ecx
push eax
lea edx, [esp + 0x58]
push edx
mov byte [esp + 0x4fc], 2
call fcn.00406980
push 0x4260ec
push eax
lea eax, [esp + 0xb8]
push eax
mov byte [esp + 0x508], 3
call fcn.00406980
push 0x4260c0
push eax
lea ecx, [esp + 0xa8]
push ecx
mov byte [esp + 0x514], 4
call fcn.00406980
push 0x4260bc
push eax
lea edx, [esp + 0xec]
push edx
mov byte [esp + 0x520], 5
call fcn.00406980
mov eax, dword [esp + 0xd0]
add esp, 0x3c
mov ebx, 8
cmp eax, ebx
jb 0x40d49a
mov eax, dword [esp + 0x80]
push eax
call fcn.0041599c
add esp, 4
cmp dword [esp + 0xb0], ebx
mov dword [esp + 0x94], edi
mov dword [esp + 0x90], esi
mov word [esp + 0x80], si
jb 0x40d4c9
mov ecx, dword [esp + 0x9c]
push ecx
call fcn.0041599c
add esp, 4
cmp dword [esp + 0x5c], ebx
mov dword [esp + 0xb0], edi
mov dword [esp + 0xac], esi
mov word [esp + 0x9c], si
jb 0x40d4f2
mov edx, dword [esp + 0x48]
push edx
call fcn.0041599c
add esp, 4
cmp dword [esp + 0x78], ebx
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], esi
mov word [esp + 0x48], si
jb 0x40d512
mov eax, dword [esp + 0x64]
push eax
call fcn.0041599c
add esp, 4
cmp dword [esp + 0x24], ebx
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], esi
mov word [esp + 0x64], si
jb 0x40d532
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0041599c
add esp, 4
cmp dword [esp + 0x40], ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], esi
mov word [esp + 0x10], si
jb 0x40d552
mov edx, dword [esp + 0x2c]
push edx
call fcn.0041599c
add esp, 4
cmp dword [esp + 0xcc], ebx
mov eax, dword [esp + 0xb8]
jae 0x40d569
lea eax, [esp + 0xb8]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [esp + 0xcc], ebx
jb 0x40d5ff
mov eax, dword [esp + 0xb8]
push eax
call fcn.0041599c
add esp, 4
jmp 0x40d5ff
mov eax, dword [edi + 0x14]
cmp eax, esi
je 0x40d5df
mov ebx, dword [edi]
mov edx, dword [edi + 0xc]
xor ecx, ecx
cmp ebx, esi
sete cl
push ecx
push eax
push edx
call fcn.0040ca30
add esp, 0xc
push 1
push esi
push esi
push eax
mov eax, dword [edi]
push esi
push eax
lea ecx, [esp + 0x2e8]
push ecx
call fcn.0040a9c0
add esp, 8
mov ecx, eax
call fcn.0040af90
mov edx, dword [0x42d058]
add edx, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x40d5ff
mov eax, dword [edi + 8]
mov ecx, dword [edi]
push eax
push ecx
lea edx, [esp + 0x2d8]
push edx
call fcn.0040a9c0
add esp, 8
push eax
call fcn.0040b4c0
add esp, 8
mov ecx, dword [esp + 0x4dc]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x4d4]
call fcn.0041575b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret