Function at 0x40b540
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x421d03
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x910
mov eax, dword [0x42c17c]
mov edx, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x90c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebx], eax
mov eax, dword [ebp + 0x20]
mov dword [ebx + 4], ecx
mov ecx, dword [ebp + 8]
mov dword [ebx + 8], edx
mov edx, dword [ebp + 0x1c]
push esi
push edi
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x14], edx
mov edi, dword [0x42d058]
xor esi, esi
cmp edi, esi
je 0x40b613
cmp dword [0x42e9ac], esi
jne 0x40b613
add edi, 0xc
cmp edi, esi
mov dword [esp + 0x10], esi
je 0x40b5bf
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x10], edi
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
push 1
push esi
push esi
push eax
push esi
push ecx
push edx
mov dword [esp + 0x940], 8
call fcn.0040a9c0
add esp, 8
mov ecx, eax
call fcn.0040af90
cmp dword [ebp + 0x18], esi
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jne 0x40b5ff
mov eax, dword [0x42d058]
add eax, 0xc
push eax
call edi
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x40b905
push eax
call edi
jmp 0x40b905
mov word [esp + 0x110], si
xor eax, eax
mov ecx, 0x1ff
lea edi, [esp + 0x112]
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 0x424b9c
lea ecx, [esp + 0x11c]
push 0x100
push ecx
call fcn.0041651d
mov edi, dword [ebx + 0x10]
push edi
mov dword [esp + 0x7c], 7
mov dword [esp + 0x78], esi
mov word [esp + 0x68], si
call fcn.0041630e
add esp, 0x18
push eax
push edi
lea ecx, [esp + 0x54]
call fcn.00406560
mov edi, 7
push 0x424b98
mov dword [esp + 0x928], esi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], esi
mov word [esp + 0x38], si
call fcn.0041630e
add esp, 4
push eax
push 0x424b98
lea ecx, [esp + 0x38]
call fcn.00406560
lea edx, [esp + 0x110]
push edx
mov byte [esp + 0x928], 1
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], esi
mov word [esp + 0x1c], si
call fcn.0041630e
add esp, 4
push eax
lea eax, [esp + 0x114]
push eax
lea ecx, [esp + 0x1c]
call fcn.00406560
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0xa8]
push eax
mov byte [esp + 0x930], 2
call fcn.004067d0
mov ecx, dword [ebx + 4]
push ecx
push eax
lea edx, [esp + 0x98]
push edx
mov byte [esp + 0x93c], 3
call fcn.00406980
push 0x4260ec
push eax
lea eax, [esp + 0xdc]
push eax
mov byte [esp + 0x948], 4
call fcn.00406980
lea ecx, [esp + 0x70]
mov byte [esp + 0x948], 5
push ecx
push eax
lea edx, [esp + 0x94]
push edx
call fcn.004067d0
push 0x4260c0
push eax
lea eax, [esp + 0x110]
push eax
mov byte [esp + 0x960], 6
call fcn.00406980
push 0x4260bc
push eax
lea ecx, [esp + 0x138]
push ecx
mov byte [esp + 0x96c], 7
call fcn.00406980
mov eax, dword [esp + 0x138]
add esp, 0x48
cmp eax, 8
jb 0x40b7a9
mov edx, dword [esp + 0xdc]
push edx
call fcn.0041599c
add esp, 4
cmp dword [esp + 0x80], 8
mov dword [esp + 0xf0], edi
mov dword [esp + 0xec], esi
mov word [esp + 0xdc], si
jb 0x40b7d6
mov eax, dword [esp + 0x6c]
push eax
call fcn.0041599c
add esp, 4
cmp dword [esp + 0xd4], 8
mov dword [esp + 0x80], edi
mov dword [esp + 0x7c], esi
mov word [esp + 0x6c], si
jb 0x40b800
mov ecx, dword [esp + 0xc0]
push ecx
call fcn.0041599c
add esp, 4
cmp dword [esp + 0x9c], 8
mov dword [esp + 0xd4], edi
mov dword [esp + 0xd0], esi
mov word [esp + 0xc0], si
jb 0x40b830
mov edx, dword [esp + 0x88]
push edx
call fcn.0041599c
add esp, 4
cmp dword [esp + 0xb8], 8
mov dword [esp + 0x9c], edi
mov dword [esp + 0x98], esi
mov word [esp + 0x88], si
jb 0x40b860
mov eax, dword [esp + 0xa4]
push eax
call fcn.0041599c
add esp, 4
cmp dword [esp + 0x2c], 8
mov dword [esp + 0xb8], edi
mov dword [esp + 0xb4], esi
mov word [esp + 0xa4], si
jb 0x40b88a
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0041599c
add esp, 4
cmp dword [esp + 0x48], 8
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], esi
mov word [esp + 0x18], si
jb 0x40b8ab
mov edx, dword [esp + 0x34]
push edx
call fcn.0041599c
add esp, 4
cmp dword [esp + 0x64], 8
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], esi
mov word [esp + 0x34], si
jb 0x40b8cc
mov eax, dword [esp + 0x50]
push eax
call fcn.0041599c
add esp, 4
cmp dword [esp + 0x10c], 8
mov eax, dword [esp + 0xf8]
jae 0x40b8e4
lea eax, [esp + 0xf8]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [esp + 0x10c], 8
jb 0x40b905
mov ecx, dword [esp + 0xf8]
push ecx
call fcn.0041599c
add esp, 4
mov ecx, dword [esp + 0x91c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x914]
mov eax, ebx
call fcn.0041575b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c