Function at 0x419f50
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x934
mov eax, dword [0x492890]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x40c]
xor ebx, ebx
mov esi, ecx
push 0x208
push ebx
push eax
mov byte [esi + 0x170], bl
mov byte [ebp - 0x925], bl
mov dword [ebp - 0x930], ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x40c]
cmp byte [ebp + 0xc], bl
je 0x419fc0
push edi
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
lea eax, [ebp - 0x40c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov edi, eax
jmp 0x419ff9
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x419ff9
lea eax, [ebp - 0x40c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x40c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push edi
lea eax, [ebp - 0x40c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x40c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x41a002
sub ecx, edx
sar ecx, 1
je 0x41a2bd
push 0x400
lea eax, [ebp - 0x910]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
mov ebx, 0x100
lea eax, [ebp - 0x204]
push ebx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push ebx
xor ebx, ebx
lea eax, [ebp - 0x104]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x24
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov ecx, dword [ebp + 0x10]
test cl, cl
mov dword [ebp - 0x914], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x92c], eax
mov dword [ebp - 0x934], ecx
je 0x41a0be
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push edi
lea eax, [ebp - 0x204]
push str.Global_s_d__d__p
push eax
call fcn.00417ed6
add esp, 0x18
lea eax, [ebp - 0x204]
push eax
push ebx
inc ebx
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push esi
push dword [ebp - 0x92c]
mov dword [esi + 0xc4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push edi
push str.Global_s_d_rpcexit__d__p
jmp 0x41a13a
test cl, cl
jne 0x41a0d2
push 0xffffffffffffffff
push edi
call fcn.0043c98c
mov eax, dword [ebp - 0x92c]
pop ecx
pop ecx
mov dword [ebp - 0x920], ebx
xor ebx, ebx
push esi
inc ebx
mov dword [ebp - 0x924], 0xc
push eax
mov dword [ebp - 0x91c], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push edi
lea eax, [ebp - 0x204]
push str._s_d__d__p
push eax
call fcn.00417ed6
add esp, 0x18
lea eax, [ebp - 0x204]
push eax
push 0
push ebx
lea eax, [ebp - 0x924]
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push esi
push dword [ebp - 0x92c]
mov dword [esi + 0xc4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push edi
push str._s_d_rpcexit__d__p
lea eax, [ebp - 0x104]
push eax
call fcn.00417ed6
add esp, 0x18
lea eax, [ebp - 0x104]
xor edi, edi
push eax
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0xc8], eax
cmp dword [esi + 0xc4], edi
je 0x41a2a5
test eax, eax
je 0x41a2a5
lea ecx, [ebp - 0x104]
push ecx
push eax
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push dword [esi + 0xc4]
lea eax, [ebp - 0x910]
push str._event__p__pid__d__evtname__s__exitevent__p__exitevtname__s
push eax
call fcn.00417eb7
add esp, 0x1c
lea eax, [ebp - 0x930]
mov ecx, esi
push eax
push dword [ebp - 0x934]
lea eax, [ebp - 0x910]
push dword [ebp - 0x914]
push eax
lea eax, [ebp - 0x40c]
push eax
call fcn.00418a3d
test eax, eax
je 0x41a2a5
push 8
push 0xffffffffffffffff
push esi
push 0x41a820
push dword [esi + 0xd0]
lea eax, [esi + 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
mov edi, dword [ebp - 0x930]
test eax, eax
je 0x41a283
test edi, edi
je 0x41a212
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0xd0]
xor edi, edi
mov dword [ebp - 0x918], eax
mov eax, dword [esi + 0xc4]
push 0xffffffffffffffff
mov dword [ebp - 0x914], eax
lea eax, [ebp - 0x918]
push edi
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x41a295
cmp eax, ebx
jne 0x41a2a5
push edi
push edi
push 0x104
lea eax, [ebp - 0x510]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x40c]
push eax
push edi
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push dword [esi + 0xcc]
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
mov byte [esi + 0x170], bl
mov byte [ebp - 0x925], bl
jmp 0x41a2a5
test edi, edi
je 0x41a295
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
mov ecx, esi
call fcn.0041a42c
mov byte [ebp - 0x925], 0
mov eax, dword [esi + 0xc4]
test eax, eax
je 0x41a2bd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0xc4], 0
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x925]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00444460
leave
ret 0x10