Function at 0x417f60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x218
mov eax, dword [0x6b1a94]
xor eax, esp
mov dword [esp + 0x214], eax
push esi
mov esi, dword [0x6c3848]
push edi
mov edi, dword [ebp + 0x10]
test esi, esi
jne 0x417fba
push 0x14
call fcn.005c92a6
mov esi, eax
add esp, 4
mov dword [0x6c3848], esi
mov dword [esi], vtable.CUniqueApp.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
push str.3DE07061_CB0A_40B6_9FC9_A4D7CE0DECE5
push 0
push 0x100002
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [esi + 4], eax
test eax, eax
je 0x417ffb
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.005c8db3
mov esp, ebp
pop ebp
ret 0x10
push str.3DE07061_CB0A_40B6_9FC9_A4D7CE0DECE5
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push esi
push 0x447bc0
push 0
push 0
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
mov dword [esi + 8], eax
call fcn.005e678b
add esp, 4
push eax
call fcn.005ebbe7
add esp, 4
call fcn.00417cd0
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
sub esp, 0xc
call fcn.00418690
mov esi, dword [0x6c37cc]
add esi, 0x10
mov dword [esp + 0xc], 0x6b2818
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x6c3564]
mov dword [esp + 8], eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
call fcn.004184f0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 8]
call fcn.0046c880
sub esp, 0xc
push dword [eax]
call fcn.0047b990
mov ecx, eax
call fcn.0047ba20
mov edx, dword [esp + 8]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4180c2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00417ac0
push 0x208
lea eax, [esp + 0x14]
push 0
push eax
call fcn.005e27b0
add esp, 0xc
lea eax, [esp + 0x10]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.skindllrepair
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov esi, dword [0x6c5364]
test esi, esi
jne 0x41812b
push 0x6c
call fcn.005c92a6
add esp, 4
mov ecx, eax
call fcn.004bd250
mov esi, eax
mov dword [0x6c5364], esi
sub esp, 0xc
lea eax, [esp + 0x1c]
mov ecx, esp
push eax
call fcn.00407490
mov ecx, esi
call fcn.004bd2f0
push edi
call fcn.00417a50
mov ecx, eax
call fcn.0042a480
call fcn.00426c30
mov eax, dword [0x6c3844]
test eax, eax
jne 0x418175
push 0x178
call fcn.005c92a6
add esp, 4
mov ecx, eax
call fcn.00426840
mov dword [0x6c3844], eax
mov esi, dword [eax + 0x38]
mov eax, dword [0x6c3848]
test eax, eax
jne 0x4181af
push 0x14
call fcn.005c92a6
add esp, 4
mov dword [0x6c3848], eax
mov dword [eax], vtable.CUniqueApp.0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov byte [eax + 0x10], 0
mov dword [eax + 0xc], esi
call fcn.00418400
mov eax, dword [0x6c3844]
test eax, eax
jne 0x4181dd
push 0x178
call fcn.005c92a6
add esp, 4
mov ecx, eax
call fcn.00426840
mov dword [0x6c3844], eax
test eax, eax
je 0x4181e6
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx + 0xc]
mov dword [0x6c3844], 0
call dword [sym.imp.ole32.dll_CoUninitialize]
mov edi, dword [0x6c3848]
test edi, edi
jne 0x418231
push 0x14
call fcn.005c92a6
mov edi, eax
add esp, 4
mov dword [0x6c3848], edi
mov dword [edi], vtable.CUniqueApp.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov byte [edi + 0x10], 0
push dword [edi + 4]
mov byte [edi + 0x10], 1
call dword [sym.imp.KERNEL32.dll_SetEvent]
push dword [edi + 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push 0xffffffffffffffff
push dword [edi + 8]
mov dword [edi + 4], 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [edi + 8]
call esi
sub esp, 0x18
mov dword [edi + 8], 0
mov ecx, esp
mov dword [edi + 0xc], 0
push str.Exit
call fcn.00405020
call fcn.0047c640
add esp, 0x18
call fcn.0047b990
mov esi, eax
cmp byte [esi], 0
je 0x4182ca
cmp dword [esi + 0x74], 0
je 0x4182c7
lea edi, [esi + 0x10]
lea ecx, [edi + 0x18]
call fcn.0047d660
test eax, eax
jne 0x4182c7
mov eax, dword [edi]
push 0
mov ecx, dword [eax + 4]
add ecx, edi
mov edx, dword [ecx + 0xc]
or edx, 2
mov eax, edx
or eax, 4
cmp dword [ecx + 0x38], 0
cmovne eax, edx
push eax
call fcn.00461920
mov byte [esi], 0
mov ecx, dword [esp + 0x21c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.005c8db3
mov esp, ebp
pop ebp
ret 0x10