Function at 0x402ac0
Capabilities:
Print debug messages

Disassembly:
push ebp
lea ebp, [esp - 0xffc]
sub esp, 0xffc
push 0xffffffffffffffff
push 0x41b4d4
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x42a094]
xor eax, ebp
mov dword [ebp + 0xff8], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov esi, dword [ebp + 0x1008]
lea eax, [ebp]
mov edi, dword [ebp + 0x1004]
push 0xff8
push 0
push eax
mov dword [ebp - 0x24], esi
call fcn.0040b050
mov ebx, dword [ebp + 0x100c]
xor eax, eax
mov dword [ebp - 0x38], eax
add esp, 0xc
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
lea eax, [ebp]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x3c], 0x18
mov dword [ebp - 0x10], eax
cmp ebx, 1
jle 0x402b9d
lea eax, [ebx*4]
call fcn.00408760
mov eax, esp
mov dword [ebp - 0x10], eax
mov dword [eax], esi
mov dword [ebp - 0x4c], esi
mov esi, eax
mov dword [ebp - 0x50], 0x41c844
mov dword [ebp - 0x40], 0xffffffff
lea eax, [esi + 4]
mov dword [ebp - 0x48], eax
lea eax, [ebx - 1]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x50]
push eax
call fcn.00407270
mov eax, dword [ebp - 0x40]
xor ecx, ecx
add esp, 4
test eax, eax
sets cl
dec ecx
and ecx, eax
mov dword [ebp - 0x40], ecx
lea ebx, [ecx + 1]
jmp 0x402ba0
lea esi, [ebp - 0x24]
mov eax, dword [ebp - 0x14]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi]
test eax, eax
jne 0x402bb8
mov eax, 0x41c78c
push eax
lea eax, [ebp - 0x20]
push 0x41c848
push eax
call fcn.00402f40
add esp, 0xc
mov eax, dword [eax]
test eax, eax
jne 0x402bd5
mov eax, 0x41c78c
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 4], 0
test eax, eax
je 0x402bf3
push eax
call fcn.00406f50
add esp, 4
xor edi, edi
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
jle 0x402cc3
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x54]
push eax
mov eax, dword [esi + edi*4]
cdq
push edx
push eax
mov eax, dword [ebp - 0x14]
push dword [eax]
call dword [sym.imp.dbghelp.dll_SymGetLineFromAddr64]
mov ecx, dword [ebp - 0x30]
mov esi, eax
mov byte [ebp], 0
test ecx, ecx
je 0x402c3a
push 0xff8
push ecx
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
test esi, esi
je 0x402cb7
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push dword [ebp - 0x34]
lea eax, [ebp]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x20]
push str.___hs__d__n
push eax
call fcn.00402e50
mov esi, dword [ebp - 0x20]
add esp, 0x10
mov eax, 0x41c78c
test esi, esi
je 0x402c80
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 4], 2
test esi, esi
je 0x402c9b
push esi
call fcn.00406f50
add esp, 4
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x10]
inc edi
cmp edi, ebx
jl 0x402c04
mov eax, dword [ebp - 0x14]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea esp, [ebp - 0x64]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xff8]
xor ecx, ebp
call fcn.0040874b
lea esp, [ebp + 0xffc]
pop ebp
ret 0xc