Function at 0x40ba81
Capabilities:
Print debug messages

Disassembly:
push ebp
sub esp, 0x81c
lea ebp, [esp - 4]
mov eax, dword [0x43b690]
xor eax, ebp
mov dword [ebp + 0x81c], eax
push 0xe8
mov eax, 0x42b88e
call fcn.00413ea5
mov eax, dword [ebp + 0x834]
mov esi, ecx
mov dword [esi], eax
mov eax, dword [ebp + 0x82c]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x830]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x840]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x828]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x83c]
xor edi, edi
mov dword [esi + 0x14], eax
cmp dword [0x43cc08], edi
je 0x40bb59
mov eax, dword [0x43e89c]
test eax, eax
jne 0x40bb59
mov eax, dword [0x43cc08]
push edi
add eax, 0xc
push eax
lea ecx, [ebp - 0x10]
call fcn.004015ff
mov dword [ebp - 4], 0x11
push 1
push edi
push edi
push dword [esi + 0x10]
push edi
push dword [esi]
push dword [esi + 4]
call fcn.0040afdf
pop ecx
pop ecx
mov ecx, eax
call fcn.0040b531
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp + 0x838], edi
jne 0x40bb3f
mov eax, dword [0x43cc08]
add eax, 0xc
push eax
call ebx
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], edi
je 0x40bce5
push dword [ebp - 0x10]
call ebx
mov dword [ebp - 0x10], edi
jmp 0x40bce5
xor eax, eax
push 0x7fe
mov word [ebp + 0x1c], ax
lea eax, [ebp + 0x1e]
push edi
push eax
call fcn.00415aa0
add esp, 0xc
call fcn.00401880
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x42ef04
lea eax, [ebp + 0x1c]
push 0x100
push eax
call fcn.004157dd
add esp, 0x14
push dword [esi + 0x10]
lea ecx, [ebp - 0xbc]
call fcn.00406082
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], edi
push 0x42ef00
lea ecx, [ebp - 0x84]
call fcn.00406082
mov dword [ebp - 0x10], eax
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00406082
mov byte [ebp - 4], 2
push dword [ebp - 0x10]
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.00405d84
mov byte [ebp - 4], 3
push dword [esi + 4]
push eax
lea eax, [ebp - 0xd8]
push eax
call fcn.00406711
mov byte [ebp - 4], 4
push 0x4306cc
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00406711
mov byte [ebp - 4], 5
push dword [ebp - 0x14]
push eax
lea eax, [ebp - 0xf4]
push eax
call fcn.00405d84
mov byte [ebp - 4], 6
push 0x4306a0
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.00406711
mov byte [ebp - 4], 7
push 0x43069c
push eax
lea eax, [ebp]
push eax
call fcn.00406711
add esp, 0x48
mov byte [ebp - 4], 9
push edi
push ebx
lea ecx, [ebp - 0x68]
call fcn.00404665
mov byte [ebp - 4], 0xa
push edi
push ebx
lea ecx, [ebp - 0xf4]
call fcn.00404665
mov byte [ebp - 4], 0xb
push edi
push ebx
lea ecx, [ebp - 0x30]
call fcn.00404665
mov byte [ebp - 4], 0xc
push edi
push ebx
lea ecx, [ebp - 0xd8]
call fcn.00404665
mov byte [ebp - 4], 0xd
push edi
push ebx
lea ecx, [ebp - 0xa0]
call fcn.00404665
mov byte [ebp - 4], 0xe
push edi
push ebx
lea ecx, [ebp - 0x4c]
call fcn.00404665
mov byte [ebp - 4], 0xf
push edi
push ebx
lea ecx, [ebp - 0x84]
call fcn.00404665
mov byte [ebp - 4], 0x10
push edi
push ebx
lea ecx, [ebp - 0xbc]
call fcn.00404665
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x40bcd0
lea eax, [ebp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
or dword [ebp - 4], 0xffffffff
push edi
push ebx
lea ecx, [ebp]
call fcn.00404665
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x81c]
xor ecx, ebp
call fcn.00413e96
add ebp, 0x820
leave
ret 0x1c