Function at 0x406b70
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x421ae2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2d0
mov eax, dword [0x42c17c]
push ebx
push esi
mov dword [esp + 0x2d0], eax
mov eax, dword [0x42e9ac]
xor esi, esi
cmp eax, esi
push edi
je 0x406e02
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 0x424b9c
lea eax, [esp + 0xdc]
push 0x100
push eax
call fcn.0041651d
mov ebx, dword [ebp + 8]
mov edi, 7
push ebx
mov dword [esp + 0x74], edi
mov dword [esp + 0x70], esi
mov word [esp + 0x60], si
call fcn.0041630e
add esp, 0x18
push eax
push ebx
lea ecx, [esp + 0x4c]
call fcn.00406560
push 0x424b98
mov dword [esp + 0x2e8], esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], esi
mov word [esp + 0x14], si
call fcn.0041630e
add esp, 4
push eax
push 0x424b98
lea ecx, [esp + 0x14]
call fcn.00406560
lea ecx, [esp + 0xd0]
push ecx
mov byte [esp + 0x2e8], 1
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], esi
mov word [esp + 0x30], si
call fcn.0041630e
add esp, 4
push eax
lea edx, [esp + 0xd4]
push edx
lea ecx, [esp + 0x30]
call fcn.00406560
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x84]
push edx
mov byte [esp + 0x2f0], 2
call fcn.004067d0
lea ecx, [esp + 0x50]
push ecx
push eax
lea edx, [esp + 0xac]
push edx
mov byte [esp + 0x2fc], 3
call fcn.004067d0
push 0x424b94
push eax
lea eax, [esp + 0x80]
push eax
mov byte [esp + 0x308], 4
call fcn.00406980
push str._Module_Unloading____n
mov byte [esp + 0x30c], 5
push eax
lea ecx, [esp + 0xe0]
push ecx
call fcn.00406980
mov eax, dword [esp + 0xa8]
mov ebx, 8
add esp, 0x30
cmp eax, ebx
jb 0x406d0d
mov edx, dword [esp + 0x64]
push edx
call fcn.0041599c
add esp, 4
cmp dword [esp + 0xb0], ebx
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], esi
mov word [esp + 0x64], si
jb 0x406d33
mov eax, dword [esp + 0x9c]
push eax
call fcn.0041599c
add esp, 4
cmp dword [esp + 0x94], ebx
mov dword [esp + 0xb0], edi
mov dword [esp + 0xac], esi
mov word [esp + 0x9c], si
jb 0x406d62
mov ecx, dword [esp + 0x80]
push ecx
call fcn.0041599c
add esp, 4
cmp dword [esp + 0x40], ebx
mov dword [esp + 0x94], edi
mov dword [esp + 0x90], esi
mov word [esp + 0x80], si
jb 0x406d8b
mov edx, dword [esp + 0x2c]
push edx
call fcn.0041599c
add esp, 4
cmp dword [esp + 0x24], ebx
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], esi
mov word [esp + 0x2c], si
jb 0x406dab
mov eax, dword [esp + 0x10]
push eax
call fcn.0041599c
add esp, 4
cmp dword [esp + 0x5c], ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], esi
mov word [esp + 0x10], si
jb 0x406dcb
mov ecx, dword [esp + 0x48]
push ecx
call fcn.0041599c
add esp, 4
cmp dword [esp + 0xcc], ebx
mov eax, dword [esp + 0xb8]
jae 0x406de2
lea eax, [esp + 0xb8]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [esp + 0xcc], ebx
jb 0x406e02
mov edx, dword [esp + 0xb8]
push edx
call fcn.0041599c
add esp, 4
mov ecx, dword [esp + 0x2dc]
mov eax, dword [0x42e9ac]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x2d4]
call fcn.0041575b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret