Function at 0x10012ad3
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10023230]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x30]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x28]
mov esi, dword [ebp + 0x38]
xor edi, edi
mov dword [ebp - 0xc], eax
mov word [eax], di
xor eax, eax
mov byte [ebx], al
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 8], eax
mov eax, ebx
sub eax, edi
mov edi, dword [ebp + 0x1c]
je 0x10012b73
sub eax, 1
je 0x10012b6a
sub eax, 1
je 0x10012b44
sub eax, 1
jne 0x10012b7d
push edi
call fcn.10012540
jmp 0x10012b7a
test edi, edi
js 0x10012b61
mov edi, 0x8007029c
push edi
push 2
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x10]
call fcn.10012e20
mov ecx, edi
call fcn.1001252a
jmp 0x10012b7a
mov ecx, edi
call fcn.10012517
jmp 0x10012b7a
mov ecx, edi
call fcn.10012504
mov dword [ebp - 8], eax
mov dword [esi], ebx
xor ebx, ebx
inc ebx
mov dword [esi + 4], edi
mov eax, ebx
lock xadd dword [0x10023744], eax
inc eax
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x10012ba1
xor ecx, ecx
cmp word [eax], cx
jne 0x10012ba3
xor eax, eax
mov dword [esi + 0xc], eax
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThreadId]
mov dword [esi + 0x10], eax
lea edi, [esi + 0x2c]
mov eax, dword [ebp - 0x10]
xor edx, edx
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x48], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 0x4c], eax
xor eax, eax
push 6
pop ecx
mov dword [esi + 0x28], edx
rep stosd dword es:[edi], eax
mov edi, dword [0x100236d4]
test edi, edi
je 0x10012bfc
mov ecx, edi
call dword [0x100241f0]
call edi
mov edi, dword [0x100236b8]
mov dword [esi + 0x44], eax
test edi, edi
je 0x10012c1c
push 0x400
push dword [ebp - 0x28]
mov ecx, edi
push esi
call dword [0x100241f0]
call edi
mov edi, dword [0x100236b4]
test edi, edi
je 0x10012c31
push esi
mov ecx, edi
call dword [0x100241f0]
call edi
mov edi, dword [0x100236c8]
test edi, edi
je 0x10012c46
push esi
mov ecx, edi
call dword [0x100241f0]
call edi
xor eax, eax
cmp dword [esi + 4], eax
jl 0x10012c5e
cmp dword [ebp + 0x18], 3
jne 0x10012d3b
mov dword [esi + 4], 0x8000ffff
cmp byte [0x1002369c], al
jne 0x10012c95
mov edi, dword [0x10023694]
test edi, edi
je 0x10012c7f
mov ecx, edi
call dword [0x100241f0]
call edi
movzx eax, al
jmp 0x10012c8b
call dword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
neg eax
sbb eax, eax
neg eax
test eax, eax
jne 0x10012c93
mov bl, al
jmp 0x10012c95
xor eax, eax
cmp byte [ebp + 0x24], 0
jne 0x10012cc0
test bl, bl
jne 0x10012cc0
mov edi, dword [0x100236a0]
test edi, edi
je 0x10012d0b
cmp byte [0x100236ac], bl
jne 0x10012d0b
push eax
push eax
push esi
mov ecx, edi
call dword [0x100241f0]
call edi
jmp 0x10012d0b
mov edi, dword [0x100236a0]
test edi, edi
je 0x10012ce6
cmp byte [0x100236ac], 0
jne 0x10012ce6
push 0x800
push dword [ebp - 0xc]
mov ecx, edi
push esi
call dword [0x100241f0]
call edi
mov eax, dword [ebp - 0xc]
xor ecx, ecx
cmp word [eax], cx
jne 0x10012d00
push esi
mov edx, 0x800
mov ecx, eax
call fcn.10012237
mov eax, dword [ebp - 0xc]
test bl, bl
je 0x10012d0b
push eax
call dword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
cmp byte [0x100236a4], 0
je 0x10012d28
mov esi, dword [0x100236bc]
test esi, esi
je 0x10012d28
mov ecx, esi
call dword [0x100241f0]
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001fd10
mov esp, ebp
pop ebp
ret 0x34
call fcn.10012f56
int3