Function at 0x100562bb
Capabilities:
Read file via mapping

Disassembly:
mov eax, 0x1013881c
call fcn.1007db34
sub esp, 0x3c
push ebx
xor ebx, ebx
cmp dword [0x101ae9cc], ebx
push esi
push edi
je 0x100562dd
push 1
pop eax
jmp 0x100565cd
mov eax, dword [0x101b04b8]
mov esi, str.SafeDoc
cmp eax, ebx
je 0x100562fb
push str.CSDHelperThread::UpdateClientID_0
push esi
push 8
call fcn.1007bb15
add esp, 0xc
push dword [0x101877f4]
mov dword [0x101ae9cc], 1
mov dword [ebp - 0x1c], ebx
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
cmp eax, ebx
mov dword [ebp - 0x20], eax
je 0x10056440
cmp dword [0x101b04b8], ebx
je 0x1005633a
push str.CSDHelperThread::UpdateClientID_1
push esi
push 8
call fcn.1007bb15
add esp, 0xc
push ebx
push ebx
push ebx
push 4
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x28], edi
je 0x1005642e
cmp dword [0x101b04b8], ebx
je 0x1005636d
push str.CSDHelperThread::UpdateClientID_2
push esi
push 8
call fcn.1007bb15
add esp, 0xc
lea ecx, [ebp - 0x38]
call fcn.1009a5e0
add edi, 0x200
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x10056419
mov dword [ebp - 0x14], ebx
mov ebx, 0x100
lea ecx, [ebp - 0x10]
push ebx
push edi
call fcn.10094770
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 1
cmp dword [eax - 8], 0
je 0x100563b4
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x38]
push eax
push dword [ebp - 0x34]
call fcn.1009abf0
cmp dword [0x101b04b8], 0
je 0x100563d3
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push str.CSDHelperThread::UpdateClientID_client_id_in_services_share_memory___d____s_
push esi
push 1
call fcn.1007bb15
add esp, 0x14
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.10094cc0
inc dword [ebp - 0x14]
add edi, ebx
cmp dword [ebp - 0x14], 0x10
jl 0x10056389
cmp dword [0x101b04b8], 0
je 0x10056406
push dword [ebp - 0x34]
push str.CSDHelperThread::UpdateClientID__arrwstrID_Size__d__3
push esi
push 8
call fcn.1007bb15
add esp, 0x10
lea eax, [ebp - 0x38]
push eax
call fcn.100552b9
pop ecx
mov dword [ebp - 0x1c], 1
xor ebx, ebx
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.1009a5f0
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1c], ebx
jne 0x100565ca
push 9
lea ecx, [ebp - 0x24]
call fcn.1005d03f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 2
push eax
push 1
push ecx
push ecx
lea eax, [ebp - 0x24]
mov ecx, esp
mov dword [ebp - 0x28], esp
push eax
mov dword [ebp - 0x10], ebx
call fcn.100560e0
call fcn.10056030
mov edi, eax
add esp, 0x10
cmp edi, ebx
jne 0x100564ca
cmp dword [0x101b04b8], ebx
je 0x10056490
push str.CSDHelperThread::UpdateClientID_open_global_share_memory_fail__4
push esi
push 8
call fcn.1007bb15
add esp, 0xc
push 0xa
lea ecx, [ebp - 0x18]
call fcn.1005d03f
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 3
push eax
push 1
push ecx
push ecx
lea eax, [ebp - 0x18]
mov ecx, esp
mov dword [ebp - 0x28], esp
push eax
call fcn.100560e0
call fcn.10056030
add esp, 0x10
lea ecx, [ebp - 0x18]
mov edi, eax
mov byte [ebp - 4], 2
call fcn.1005d038
cmp dword [0x101b04b8], ebx
je 0x100564e6
push dword [ebp - 0x10]
push edi
push str.CSDHelperThread::UpdateClientID_open_share_memory_lpBuf_0x_x___dwSize_0x_x__5
push esi
push 8
call fcn.1007bb15
add esp, 0x14
cmp edi, ebx
je 0x100565a4
lea ecx, [ebp - 0x48]
call fcn.1009a5e0
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 4
shr eax, 8
test eax, eax
jle 0x1005656b
mov dword [ebp - 0x1c], edi
mov edi, 0x100
lea ecx, [ebp - 0x14]
push edi
push dword [ebp - 0x1c]
call fcn.10094770
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 5
cmp dword [eax - 8], 0
je 0x10056534
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x48]
push eax
push dword [ebp - 0x44]
call fcn.1009abf0
cmp dword [0x101b04b8], 0
je 0x10056551
push dword [ebp - 0x14]
push ebx
push str.CSDHelperThread::UpdateClientID__client_id_in_share_memory___d____s_
push esi
push 8
call fcn.1007bb15
add esp, 0x14
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.10094cc0
mov eax, dword [ebp - 0x10]
add dword [ebp - 0x1c], edi
inc ebx
shr eax, 8
cmp ebx, eax
jl 0x10056507
cmp dword [0x101b04b8], 0
je 0x10056587
push dword [ebp - 0x44]
push str.CSDHelperThread::UpdateClientID__arrwstrID_Size__d__6
push esi
push 8
call fcn.1007bb15
add esp, 0x10
lea eax, [ebp - 0x48]
push eax
call fcn.100552b9
pop ecx
mov dword [ebp - 0x1c], 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.1009a5f0
push ecx
push ecx
mov ecx, dword [ebp - 0x20]
mov eax, esp
mov dword [ebp - 0x28], esp
mov dword [eax + 4], ecx
mov dword [eax], 0x10140864
call fcn.10056111
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
lea ecx, [ebp - 0x24]
call fcn.1005d038
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret