Function at 0x10008550
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x28
test byte [0x1000a0c0], 8
jne 0x100087c8
mov dword [esp + 0xc], 0
mov ebx, dword [sym.imp.kernel32.dll_CreateEventW]
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call ebx
mov dword [section..bss], eax
sub esp, 0x10
test eax, eax
je 0x100087f8
mov dword [esp + 8], 0
mov dword [esp + 4], sym._ServiceHandler_16
mov dword [esp], str.BITS
call dword [sym.imp.advapi32.dll_RegisterServiceCtrlHandlerExW]
mov dword [0x10019020], eax
sub esp, 0xc
test eax, eax
je 0x10008760
mov edx, 0xbb8
mov eax, 2
call sym._UpdateStatus.isra.0
test byte [0x1000a0c0], 8
jne 0x10008838
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
sub esp, 8
test eax, eax
js 0x100087a0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 3
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xffffffff
mov dword [esp], 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
sub esp, 0x24
test eax, eax
js 0x100087a0
lea esi, [ebp - 0xc]
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], esi
mov dword [esp + 8], 4
mov dword [esp + 4], 0x1000a038
mov dword [esp], 0x1001493c
call dword [sym.imp.ole32.dll_CoRegisterClassObject]
sub esp, 0x14
test eax, eax
js 0x100087a0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call ebx
mov dword [0x1000a09c], eax
sub esp, 0x10
test eax, eax
je 0x10008898
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], sym._fileTransfer_4
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateThread]
sub esp, 0x18
mov ebx, eax
test eax, eax
je 0x100088e0
xor edx, edx
mov eax, 4
call sym._UpdateStatus.isra.0
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
xor edx, edx
mov eax, 1
sub esp, 8
call sym._UpdateStatus.isra.0
mov eax, dword [section..bss]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
test byte [0x1000a0c0], 8
jne 0x10008920
call dword [sym.imp.ole32.dll_CoUninitialize]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 8
test byte [0x1000a0c0], 2
je 0x10008753
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.failed_to_register_handler:__lu_n
mov dword [esp + 8], str.ServiceMain
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x1000a0c0
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_6
jmp 0x10008753
test byte [0x1000a0c0], 2
jne 0x10008868
xor edx, edx
mov eax, 1
call sym._UpdateStatus.isra.0
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 8
mov dword [esp + 0xc], 0x1000de1a
mov dword [esp + 8], str.ServiceMain
mov dword [esp + 4], 0x1000a0c0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_6
jmp 0x10008565
test byte [0x1000a0c0], 2
je 0x10008753
mov dword [esp + 0xc], str.failed_to_create_stop_event_n
mov dword [esp + 8], str.ServiceMain
mov dword [esp + 4], 0x1000a0c0
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_6
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 8
mov dword [esp + 0xc], 0x1000de1a
mov dword [esp + 8], str.StartCount
mov dword [esp + 4], 0x1000a0c0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_6
jmp 0x100085e5
mov dword [esp + 0xc], str.failed_starting_service_thread_n
mov dword [esp + 8], str.ServiceMain
mov dword [esp + 4], 0x1000a0c0
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_6
jmp 0x100087ad
test byte [0x1000a0c0], 2
je 0x100087ad
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.Couldnt_create_event:_error__ld_n
mov dword [esp + 8], str.ServiceMain
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x1000a0c0
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_6
jmp 0x100087ad
test byte [0x1000a0c0], 2
je 0x100087ad
mov dword [esp + 0xc], str.Failed_starting_file_transfer_thread_n
mov dword [esp + 8], str.ServiceMain
mov dword [esp + 4], 0x1000a0c0
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_6
jmp 0x100087ad
mov dword [esp + 0xc], str.service_stopped_n
mov dword [esp + 8], str.ServiceMain
mov dword [esp + 4], 0x1000a0c0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_6
jmp 0x1000874d