Function at 0x40d9a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453640
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x46a180]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x260], 0
je 0x40db63
push 1
xorps xmm0, xmm0
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x104], 0
movups xmmword [ebp - 0x114], xmm0
call fcn.0040ca30
call fcn.004102f0
cmp eax, 6
jl 0x40da46
push str.CWemeetUpdateSvcModule::InitializeSecurity
push 0x58
push str.D:qci_workspace_root_workspaces__qci_pipeline_10854701_1_appWindows_serviceupdate_servicewemeet_update_service.cc
push 6
lea ecx, [ebp - 0xf8]
call fcn.00404330
add eax, 0x10
push str.initializeSecurity_start.
push eax
call fcn.00402c00
add esp, 8
lea ecx, [ebp - 0xf8]
call fcn.00404f70
mov ebx, dword [ebp - 0x114]
push 0
push 0
push 0
push 2
push 6
push 0
push 0
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
mov esi, eax
call fcn.004102f0
test esi, esi
jns 0x40dae1
cmp eax, 6
jl 0x40daa8
push str.CWemeetUpdateSvcModule::InitializeSecurity
push 0x64
push str.D:qci_workspace_root_workspaces__qci_pipeline_10854701_1_appWindows_serviceupdate_servicewemeet_update_service.cc
push 6
lea ecx, [ebp - 0xf8]
call fcn.00404330
add eax, 0x10
push str.initializeSecurity_failed.
push eax
call fcn.00402c00
add esp, 8
lea ecx, [ebp - 0xf8]
call fcn.00404f70
push 0
push ebx
call fcn.00430e05
push dword [ebp - 0x110]
call fcn.0043890d
push dword [ebp - 0x10c]
call fcn.0043890d
push dword [ebp - 0x108]
call fcn.0043890d
push dword [ebp - 0x104]
call fcn.0043890d
add esp, 0x18
jmp 0x40db54
cmp eax, 6
jl 0x40db1b
push str.CWemeetUpdateSvcModule::InitializeSecurity
push 0x67
push str.D:qci_workspace_root_workspaces__qci_pipeline_10854701_1_appWindows_serviceupdate_servicewemeet_update_service.cc
push 6
lea ecx, [ebp - 0xf8]
call fcn.00404330
add eax, 0x10
push str.initializeSecurity_success.
push eax
call fcn.00402c00
add esp, 8
lea ecx, [ebp - 0xf8]
call fcn.00404f70
push 0
push ebx
call fcn.00430e05
push dword [ebp - 0x110]
call fcn.0043890d
push dword [ebp - 0x10c]
call fcn.0043890d
push dword [ebp - 0x108]
call fcn.0043890d
push dword [ebp - 0x104]
call fcn.0043890d
add esp, 0x18
xor esi, esi
mov dword [ebp - 4], 0xffffffff
test esi, esi
js 0x40dd37
mov eax, dword [0x46a024]
mov esi, 1
mov edx, dword [0x46a028]
mov dword [ebp - 0x100], eax
cmp eax, edx
jae 0x40dbff
test esi, esi
js 0x40dd37
mov ebx, dword [eax]
test ebx, ebx
je 0x40dbf2
mov ecx, dword [ebx + 8]
mov dword [ebp - 0xfc], 0
test ecx, ecx
jne 0x40dba4
xor esi, esi
jmp 0x40dbf2
lea eax, [ebp - 0xfc]
push eax
push 0x4575d4
push dword [ebx + 0xc]
call ecx
mov esi, eax
test esi, esi
js 0x40dbd6
mov eax, dword [ebx + 0x10]
add eax, 4
push eax
push 5
push 4
push dword [ebp - 0xfc]
push dword [ebx]
call dword [sym.imp.ole32.dll_CoRegisterClassObject]
mov esi, eax
mov ecx, dword [ebp - 0xfc]
test ecx, ecx
je 0x40dbe6
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov edx, dword [0x46a028]
mov eax, dword [ebp - 0x100]
add eax, 4
mov dword [ebp - 0x100], eax
cmp eax, edx
jb 0x40db81
test esi, esi
js 0x40dd37
jne 0x40dd33
cmp byte [edi + 0x3c], 0
je 0x40dcdb
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x30], eax
test eax, eax
je 0x40dccd
lea eax, [ebp - 0x100]
push eax
push 0
push edi
push 0x40cf10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
jne 0x40dc5f
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x30], ebx
test ebx, ebx
je 0x40dccd
cmp dword [edi + 0x260], 0
je 0x40dca2
mov edx, 4
lea ecx, [edi + 0x248]
mov eax, 2
lock cmpxchg dword [ecx], edx
cmp eax, 2
jne 0x40dca2
push str.Service_started_resumed
push edi
call fcn.0040ce60
add esp, 8
lea eax, [edi + 0x244]
push eax
push dword [edi + 0x240]
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
call dword [sym.imp.ole32.dll_CoResumeClassObjects]
mov esi, eax
test esi, esi
jns 0x40dcc4
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [edi + 0x34]
add ecx, ecx
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40dd26
mov ecx, edi
mov esi, 0x80004005
call fcn.0040e050
jmp 0x40dd37
cmp dword [edi + 0x260], 0
je 0x40dd1e
mov edx, 4
lea ecx, [edi + 0x248]
mov eax, 2
lock cmpxchg dword [ecx], edx
cmp eax, 2
jne 0x40dd1e
push str.Service_started_resumed
push edi
call fcn.0040ce60
add esp, 8
lea eax, [edi + 0x244]
push eax
push dword [edi + 0x240]
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
call dword [sym.imp.ole32.dll_CoResumeClassObjects]
mov esi, eax
test esi, esi
jns 0x40dd37
mov ecx, edi
call fcn.0040e050
jmp 0x40dd37
mov byte [edi + 0x3c], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004312d2
mov esp, ebp
pop ebp
ret 4