Function at 0x40e100
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43b6b8
mov eax, dword fs:[0]
push eax
sub esp, 0x94c
mov eax, dword [0x4b249c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x918], ecx
mov eax, dword [ebp - 0x918]
mov ecx, dword [ebp + 0x14]
mov dword [eax], ecx
mov edx, dword [ebp - 0x918]
mov eax, dword [ebp + 0xc]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 0x918]
mov edx, dword [ebp + 0x10]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x918]
mov ecx, dword [ebp + 0x20]
mov dword [eax + 0xc], ecx
mov edx, dword [ebp - 0x918]
mov eax, dword [ebp + 8]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 0x918]
mov edx, dword [ebp + 0x1c]
mov dword [ecx + 0x14], edx
cmp dword [0x4b3ed4], 0
je 0x40e18e
cmp dword [0x4b568c], 0
je 0x40e3fd
xor eax, eax
mov word [ebp - 0x834], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x832]
push ecx
call fcn.00426300
add esp, 0xc
call fcn.0040f3d0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str.__d___WARN____s_
push 0x100
lea edx, [ebp - 0x834]
push edx
call fcn.0042934a
add esp, 0x14
push 0x43e31c
push str._Module_Unloading___
mov eax, dword [ebp - 0x918]
mov ecx, dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x850]
call fcn.00405190
mov dword [ebp - 0x91c], eax
mov edx, dword [ebp - 0x91c]
mov dword [ebp - 0x920], edx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x920]
push eax
push 0x43e2e8
mov ecx, dword [ebp - 0x918]
mov edx, dword [ecx + 4]
push edx
push 0x43e290
lea ecx, [ebp - 0x86c]
call fcn.00405190
mov dword [ebp - 0x924], eax
mov eax, dword [ebp - 0x924]
mov dword [ebp - 0x928], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x928]
push ecx
lea edx, [ebp - 0x834]
push edx
lea ecx, [ebp - 0x888]
call fcn.00405190
mov dword [ebp - 0x92c], eax
mov eax, dword [ebp - 0x92c]
mov dword [ebp - 0x930], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x930]
push ecx
lea edx, [ebp - 0x8a4]
push edx
call fcn.00418270
add esp, 0xc
mov dword [ebp - 0x934], eax
mov eax, dword [ebp - 0x934]
mov dword [ebp - 0x938], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x938]
push ecx
lea edx, [ebp - 0x8c0]
push edx
call fcn.00418300
add esp, 0xc
mov dword [ebp - 0x93c], eax
mov eax, dword [ebp - 0x93c]
mov dword [ebp - 0x940], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x940]
push ecx
lea edx, [ebp - 0x8dc]
push edx
call fcn.00418300
add esp, 0xc
mov dword [ebp - 0x944], eax
mov eax, dword [ebp - 0x944]
mov dword [ebp - 0x948], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x948]
push ecx
lea edx, [ebp - 0x8f8]
push edx
call fcn.00418270
add esp, 0xc
mov dword [ebp - 0x94c], eax
mov eax, dword [ebp - 0x94c]
mov dword [ebp - 0x950], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x950]
push ecx
lea edx, [ebp - 0x914]
push edx
call fcn.00418300
add esp, 0xc
mov dword [ebp - 0x954], eax
mov eax, dword [ebp - 0x954]
mov dword [ebp - 0x958], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x958]
push ecx
lea edx, [ebp - 0x30]
push edx
call fcn.00418300
add esp, 0xc
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x914]
call fcn.00405210
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x8f8]
call fcn.00405210
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x8dc]
call fcn.00405210
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x8c0]
call fcn.00405210
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x8a4]
call fcn.00405210
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x888]
call fcn.00405210
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x86c]
call fcn.00405210
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x850]
call fcn.00405210
lea ecx, [ebp - 0x30]
call fcn.004052b0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00405210
jmp 0x40e472
push 0
mov eax, dword [0x4b3ed4]
add eax, 0xc
push eax
lea ecx, [ebp - 0x10]
call fcn.0040e090
mov dword [ebp - 4], 0x11
push 1
push 0
push 0
mov ecx, dword [ebp - 0x918]
mov edx, dword [ecx + 0x10]
push edx
push 0
mov eax, dword [ebp - 0x918]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0x918]
mov eax, dword [edx + 4]
push eax
call fcn.0040e820
add esp, 8
mov ecx, eax
call fcn.00410700
cmp dword [ebp + 0x18], 0
je 0x40e453
jmp 0x40e463
mov ecx, dword [0x4b3ed4]
add ecx, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040e0d0
mov eax, dword [ebp - 0x918]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042624f
mov esp, ebp
pop ebp
ret 0x1c