Function at 0x10022080
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100904e8
push 0x1005aa50
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x1009cbc0]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
mov ebx, dword [0x100e2810]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x10022254
cmp dword [ebx], 0x1234abcd
jne 0x10022254
mov dword [ebp - 4], 1
lea eax, [ebx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edx, edx
mov dword [ebp - 0x1c], edx
cmp edx, dword [ebx + 0x4258]
jge 0x1002210f
imul ecx, edx, 0x208
mov eax, dword [ebx + 0x4260]
cmp dword [eax + ecx + 0x204], esi
je 0x1002210f
inc edx
jmp 0x100220ec
mov ecx, dword [ebx + 0x4258]
cmp edx, ecx
jl 0x100221d1
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
jne 0x1002214a
push str.Memory_allocation_error_in_log_file_n
call fcn.10052604
add esp, 4
push str.Memory_allocation_error_in_log_file_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x100221a7
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push 9
test eax, eax
jle 0x10022186
mov byte [esi + 0xffff], 0
push esi
push str.DelGuiInstances
push 1
mov edx, 0x427
mov ecx, str...StandAloneSvcClientIPC.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1002219e
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call fcn.10052152
add esp, 4
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1009cbc0
call fcn.10062b20
add esp, 0xc
mov eax, 9
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
dec ecx
mov dword [ebp - 0x20], ecx
cmp edx, ecx
jge 0x100221f9
mov eax, dword [ebx + 0x4260]
imul esi, ecx, 0x208
add esi, eax
imul edi, edx, 0x208
add edi, eax
mov ecx, 0x82
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x20]
push 0x208
push 0
imul eax, ecx, 0x208
add eax, dword [ebx + 0x4260]
push eax
call fcn.10055aa0
add esp, 0xc
dec dword [ebx + 0x4258]
mov dword [ebp - 4], 0
call fcn.10022245
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
jne 0x1002229b
push str.Memory_allocation_error_in_log_file_n
call fcn.10052604
add esp, 4
push str.Memory_allocation_error_in_log_file_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 4], 0xfffffffe
lea eax, [esi + 8]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push 8
test eax, eax
jle 0x100222d7
mov byte [esi + 0xffff], 0
push esi
push str.DelGuiInstances
push 1
mov edx, 0x41b
mov ecx, str...StandAloneSvcClientIPC.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x100222ef
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call fcn.10052152
add esp, 4
mov dword [ebp - 4], 0xfffffffe
mov eax, 8
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret