Function at 0x4191e0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x930
mov eax, dword [0x48f85c]
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 dword [ebp - 0x92c], ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x40c]
cmp byte [ebp + 0xc], bl
je 0x41924a
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 0x419283
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x419283
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 0x41928c
sub ecx, edx
sar ecx, 1
je 0x419540
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 - 0x928], eax
mov dword [ebp - 0x930], ecx
je 0x419348
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.00417187
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 - 0x928]
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 0x4193c4
test cl, cl
jne 0x41935c
push 0xffffffffffffffff
push edi
call fcn.0043b89f
mov eax, dword [ebp - 0x928]
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.00417187
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 - 0x928]
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.00417187
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 0x419529
test eax, eax
je 0x419529
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.00417168
add esp, 0x1c
lea eax, [ebp - 0x92c]
mov ecx, esi
push eax
push dword [ebp - 0x930]
lea eax, [ebp - 0x910]
push dword [ebp - 0x914]
push eax
lea eax, [ebp - 0x40c]
push eax
call fcn.00417ced
test eax, eax
je 0x419529
push 8
push 0xffffffffffffffff
push esi
push 0x419aa0
push dword [esi + 0xd0]
lea eax, [esi + 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
mov edi, dword [ebp - 0x92c]
test eax, eax
je 0x419513
test edi, edi
je 0x41949c
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
jne 0x4194d6
push edi
mov ecx, esi
call fcn.004196ab
jmp 0x419540
cmp eax, ebx
jne 0x419529
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 al, bl
jmp 0x419542
test edi, edi
je 0x419525
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
jmp 0x4194cd
mov eax, dword [esi + 0xc4]
test eax, eax
je 0x419540
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xc4], edi
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00442ef0
leave
ret 0x10