Function at 0x4222b0
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x42d0b4]
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 0x42232a
sub eax, 1
je 0x422321
sub eax, 1
je 0x4222fb
sub eax, 1
jne 0x422333
push edi
call fcn.00416c40
jmp 0x422331
test edi, edi
js 0x422318
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.004228b2
mov ecx, edi
call fcn.00422639
jmp 0x422331
mov ecx, edi
call fcn.0042264c
jmp 0x422331
mov ecx, edi
call fcn.00422626
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 [0x447f18], eax
inc eax
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x42235b
xor ecx, ecx
cmp word [eax], cx
jne 0x42235d
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 [0x42d5f0]
test edi, edi
je 0x4223b3
mov ecx, edi
call dword [0x4494b4]
call edi
mov edi, dword [0x42d5e8]
mov dword [esi + 0x44], eax
test edi, edi
je 0x4223d3
push 0x400
push dword [ebp + 0x30]
mov ecx, edi
push esi
call dword [0x4494b4]
call edi
mov edi, dword [0x448088]
test edi, edi
je 0x4223e8
push esi
mov ecx, edi
call dword [0x4494b4]
call edi
mov edi, dword [0x448090]
test edi, edi
je 0x4223fd
push esi
mov ecx, edi
call dword [0x4494b4]
call edi
cmp dword [esi + 4], ebx
jl 0x422413
cmp dword [ebp + 0x18], 3
jne 0x4224c5
mov dword [esi + 4], 0x8000ffff
call fcn.00422258
test al, al
setne bl
cmp byte [ebp + 0x24], 0
jne 0x42244a
test bl, bl
jne 0x42244a
mov edi, dword [0x44807c]
test edi, edi
je 0x422495
cmp byte [0x448081], bl
jne 0x422495
xor eax, eax
mov ecx, edi
push eax
push eax
push esi
call dword [0x4494b4]
call edi
jmp 0x422495
mov edi, dword [0x44807c]
test edi, edi
je 0x422470
cmp byte [0x448081], 0
jne 0x422470
push 0x800
push dword [ebp + 0x28]
mov ecx, edi
push esi
call dword [0x4494b4]
call edi
mov eax, dword [ebp + 0x28]
xor ecx, ecx
cmp word [eax], cx
jne 0x42248a
push esi
mov edx, 0x800
mov ecx, eax
call fcn.00421c79
mov eax, dword [ebp + 0x28]
test bl, bl
je 0x422495
push eax
call dword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
cmp byte [0x448080], 0
je 0x4224b2
mov esi, dword [0x42d5ec]
test esi, esi
je 0x4224b2
mov ecx, esi
call dword [0x4494b4]
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416fd0
mov esp, ebp
pop ebp
ret 0x34
call fcn.004180f2
int3