Function at 0x43307a
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x934
mov eax, dword [0x4b5898]
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 + 0x154], 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 0x4330ea
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 0x433123
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x433123
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 0x43312c
sub ecx, edx
sar ecx, 1
je 0x4333e7
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 0x4331e8
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.004318ac
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 + 0xa8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push edi
push str.Global_s_d_rpcexit__d__p
jmp 0x433264
test cl, cl
jne 0x4331fc
push 0xffffffffffffffff
push edi
call fcn.0045858d
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.004318ac
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 + 0xa8], 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.004318ac
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 + 0xac], eax
cmp dword [esi + 0xa8], edi
je 0x4333cf
test eax, eax
je 0x4333cf
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 + 0xa8]
lea eax, [ebp - 0x910]
push str._event__p__pid__d__evtname__s__exitevent__p__exitevtname__s
push eax
call fcn.0043188d
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.00431f9d
test eax, eax
je 0x4333cf
push 8
push 0xffffffffffffffff
push esi
push 0x433840
push dword [esi + 0xb4]
lea eax, [esi + 0xb8]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
mov edi, dword [ebp - 0x930]
test eax, eax
je 0x4333ad
test edi, edi
je 0x43333c
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0xb4]
xor edi, edi
mov dword [ebp - 0x918], eax
mov eax, dword [esi + 0xa8]
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 0x4333bf
cmp eax, ebx
jne 0x4333cf
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 + 0xb0]
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
mov byte [esi + 0x154], bl
mov byte [ebp - 0x925], bl
jmp 0x4333cf
test edi, edi
je 0x4333bf
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.00433556
mov byte [ebp - 0x925], 0
mov eax, dword [esi + 0xa8]
test eax, eax
je 0x4333e7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0xa8], 0
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x925]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004619c0
leave
ret 0x10