Function at 0x1002ec08
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10064318]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x28]
push ebx
push esi
xor esi, esi
mov dword [ebp - 8], edx
mov word [eax], si
xor ebx, ebx
mov eax, dword [ebp + 0x30]
push edi
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 0xc], ecx
mov byte [eax], bl
mov eax, dword [ebp + 0x18]
sub eax, ebx
je 0x1002ec82
sub eax, 1
je 0x1002ec79
sub eax, 1
je 0x1002ec53
sub eax, 1
jne 0x1002ec8b
push edi
call fcn.1001e3e0
jmp 0x1002ec89
test edi, edi
js 0x1002ec70
mov edi, 0x8007029c
push edi
push 2
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10030f5b
mov ecx, edi
call fcn.1002fb20
jmp 0x1002ec89
mov ecx, edi
call fcn.1002fb33
jmp 0x1002ec89
mov ecx, edi
call fcn.1002fb0d
mov ebx, eax
mov esi, dword [ebp + 0x38]
mov eax, dword [ebp + 0x18]
mov dword [esi], eax
xor eax, eax
mov dword [esi + 4], edi
inc eax
lock xadd dword [0x10065480], eax
inc eax
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x1002ecb3
xor ecx, ecx
cmp word [eax], cx
jne 0x1002ecb5
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 + 8]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x48], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x24], ebx
xor ebx, ebx
mov dword [esi + 0x4c], eax
xor eax, eax
push 6
pop ecx
mov dword [esi + 0x28], ebx
rep stosd dword es:[edi], eax
mov edi, dword [0x10064cd0]
test edi, edi
je 0x1002ed0b
mov ecx, edi
call dword [0x10066528]
call edi
mov edi, dword [0x10064cd4]
mov dword [esi + 0x44], eax
test edi, edi
je 0x1002ed2b
push 0x400
push dword [ebp + 0x30]
mov ecx, edi
push esi
call dword [0x10066528]
call edi
mov edi, dword [0x100655d8]
test edi, edi
je 0x1002ed40
push esi
mov ecx, edi
call dword [0x10066528]
call edi
mov edi, dword [0x100655cc]
test edi, edi
je 0x1002ed55
push esi
mov ecx, edi
call dword [0x10066528]
call edi
cmp dword [esi + 4], ebx
jl 0x1002ed6b
cmp dword [ebp + 0x18], 3
jne 0x1002ee1d
mov dword [esi + 4], 0x8000ffff
call fcn.1002e831
test al, al
setne bl
cmp byte [ebp + 0x24], 0
jne 0x1002eda2
test bl, bl
jne 0x1002eda2
mov edi, dword [0x100655e8]
test edi, edi
je 0x1002eded
cmp byte [0x100655e0], bl
jne 0x1002eded
xor eax, eax
mov ecx, edi
push eax
push eax
push esi
call dword [0x10066528]
call edi
jmp 0x1002eded
mov edi, dword [0x100655e8]
test edi, edi
je 0x1002edc8
cmp byte [0x100655e0], 0
jne 0x1002edc8
push 0x800
push dword [ebp + 0x28]
mov ecx, edi
push esi
call dword [0x10066528]
call edi
mov eax, dword [ebp + 0x28]
xor ecx, ecx
cmp word [eax], cx
jne 0x1002ede2
push esi
mov edx, 0x800
mov ecx, eax
call fcn.1002dd39
mov eax, dword [ebp + 0x28]
test bl, bl
je 0x1002eded
push eax
call dword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
cmp byte [0x100655e1], 0
je 0x1002ee0a
mov esi, dword [0x10064cc8]
test esi, esi
je 0x1002ee0a
mov ecx, esi
call dword [0x10066528]
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001f1e0
mov esp, ebp
pop ebp
ret 0x34
call fcn.1003226a
int3