Function at 0x10021bd0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100904c0
push 0x1005aa50
mov eax, dword fs:[0]
push eax
sub esp, 0x20
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 dword [ebp - 0x2c], edx
mov esi, dword [0x100e2810]
mov dword [ebp - 0x30], esi
xor edi, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], edi
test esi, esi
je 0x10021efd
cmp dword [esi], 0x1234abcd
jne 0x10021efd
mov dword [ebp - 4], 1
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edx, edx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x20], edx
cmp edx, dword [esi + 0x4258]
jge 0x10021c64
imul ecx, edx, 0x208
mov eax, dword [esi + 0x4260]
cmp dword [eax + ecx + 0x204], ebx
je 0x10021c64
inc edx
jmp 0x10021c41
mov eax, dword [esi + 0x4258]
cmp edx, eax
jge 0x10021d26
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
jne 0x10021c9f
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 0x10021cfc
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push 2
test eax, eax
jle 0x10021cdb
mov byte [esi + 0xffff], 0
push esi
push str.AddGuiInstances
push 1
mov edx, 0x3e7
mov ecx, str...StandAloneSvcClientIPC.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x10021cf3
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, 2
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x425c]
cmp ecx, eax
jg 0x10021e6f
lea eax, [ecx + 0xa]
mov dword [ebp - 0x28], eax
imul eax, eax, 0x208
mov dword [ebp - 0x24], eax
add eax, 0xa
push eax
call fcn.1005218a
add esp, 4
mov edi, eax
mov dword [ebp - 0x1c], edi
test edi, edi
jne 0x10021e10
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
jne 0x10021d89
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 0x10021de6
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push 5
test eax, eax
jle 0x10021dc5
mov byte [esi + 0xffff], 0
push esi
push str.AddGuiInstances
push 1
mov edx, 0x3ef
mov ecx, str...StandAloneSvcClientIPC.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x10021ddd
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, 5
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 dword [ebp - 0x24]
push 0
push edi
call fcn.10055aa0
add esp, 0xc
mov eax, dword [esi + 0x425c]
test eax, eax
jle 0x10021e5b
imul eax, eax, 0x208
push eax
push dword [esi + 0x4260]
push edi
call fcn.10055450
add esp, 0xc
mov eax, dword [esi + 0x4260]
test eax, eax
je 0x10021e51
push eax
call fcn.10052152
add esp, 4
mov dword [esi + 0x4260], 0
mov dword [esi + 0x4260], edi
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x425c], eax
xor edi, edi
mov dword [ebp - 0x1c], edi
imul ecx, dword [esi + 0x4258], 0x208
mov eax, dword [esi + 0x4260]
mov dword [ecx + eax + 0x204], ebx
imul eax, dword [esi + 0x4258], 0x208
add eax, dword [esi + 0x4260]
push dword [ebp - 0x2c]
push 0x101
push eax
call fcn.10053320
add esp, 0xc
inc dword [esi + 0x4258]
mov dword [ebp - 4], 0
call fcn.10021eda
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 0x10021f44
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 0x10021f80
mov byte [esi + 0xffff], 0
push esi
push str.AddGuiInstances
push 1
mov edx, 0x3da
mov ecx, str...StandAloneSvcClientIPC.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x10021f98
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