Function at 0x401160
Capabilities:
Create process on windows
Extract resource via kernel32 functions
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x348
mov eax, dword [0x413004]
xor eax, esp
mov dword [esp + 0x344], eax
push esi
push edi
push 0
push 1
call dword [sym.imp.KERNEL32.dll_SetThreadErrorMode]
push 0xa
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x401971
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401971
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x401971
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
shr eax, 1
lea ecx, [esp + 0xb8]
push eax
push edi
mov dword [esp + 0xc0], 0
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 7
call fcn.00401a00
mov edi, dword [esp + 0xc8]
cmp edi, 0x1d
jbe 0x401933
lea eax, [esp + 0x140]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x40132f
lea ecx, [esp + 0x140]
mov dword [esp + 0x90], 0
mov dword [esp + 0xa0], 0
lea edx, [ecx + 2]
mov dword [esp + 0xa4], 7
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401250
sub ecx, edx
lea eax, [esp + 0x140]
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x98]
call fcn.00401a00
lea ecx, [esp + 0x140]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401280
sub ecx, edx
sar ecx, 1
movzx eax, word [esp + ecx*2 + 0x13e]
push eax
push 0x411c88
call fcn.00402cd1
add esp, 8
test eax, eax
jne 0x40130b
mov esi, dword [esp + 0xa4]
mov eax, esi
mov edx, dword [esp + 0xa0]
sub eax, edx
cmp eax, 1
jb 0x4012ed
cmp esi, 8
lea eax, [esp + 0x90]
lea ecx, [edx + 1]
mov esi, 0x5c
cmovae eax, dword [esp + 0x90]
mov dword [esp + 0xa0], ecx
mov word [eax + edx*2], si
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x40130b
push 1
push 0x411c88
mov byte [esp + 0x18], 0
lea ecx, [esp + 0x98]
push dword [esp + 0x18]
push 1
call fcn.00401b70
movaps xmm0, xmmword [esp + 0x90]
movaps xmmword [esp + 0xd0], xmm0
movq xmm0, qword [esp + 0xa0]
movq qword [esp + 0xe0], xmm0
jmp 0x401363
push 0
push 0x411c8c
lea ecx, [esp + 0xd8]
mov dword [esp + 0xd8], 0
mov dword [esp + 0xe8], 0
mov dword [esp + 0xec], 7
call fcn.00401a00
cmp dword [esp + 0xe0], 0
mov esi, dword [esp + 0xd0]
jbe 0x4018fc
mov ecx, 0x12
mov dword [esp + 0xf8], 0
cmp edi, ecx
mov dword [esp + 0x108], 0
lea eax, [esp + 0xb8]
mov dword [esp + 0x10c], 7
cmovb ecx, edi
cmp dword [esp + 0xcc], 8
push ecx
cmovae eax, dword [esp + 0xbc]
lea ecx, [esp + 0xfc]
push eax
call fcn.00401a00
mov eax, dword [esp + 0xc8]
mov dword [esp + 0x110], 0
mov dword [esp + 0x120], 0
mov dword [esp + 0x124], 7
cmp eax, 0x12
jb 0x401998
add eax, 0xffffffee
mov ecx, 0xb
cmp eax, ecx
cmovb ecx, eax
cmp dword [esp + 0xcc], 8
lea eax, [esp + 0xb8]
cmovae eax, dword [esp + 0xb8]
push ecx
add eax, 0x24
lea ecx, [esp + 0x114]
push eax
call fcn.00401a00
mov eax, dword [esp + 0xc8]
mov dword [esp + 0x128], 0
mov dword [esp + 0x138], 0
mov dword [esp + 0x13c], 7
cmp eax, 0x1d
jb 0x401998
add eax, 0xffffffe3
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [esp + 0xcc], 8
lea eax, [esp + 0xb8]
cmovae eax, dword [esp + 0xb8]
push ecx
add eax, 0x3a
lea ecx, [esp + 0x12c]
push eax
call fcn.00401a00
mov ecx, 0x7ffffffe
mov dword [esp + 0x1c], 1
sub ecx, dword [esp + 0xe0]
lea edi, [esp + 0x110]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x10], edi
nop word [eax + eax]
mov eax, dword [esp + 0x108]
mov dword [esp + 0x50], eax
cmp ecx, eax
jb 0x401993
cmp dword [esp + 0xe4], 8
lea edx, [esp + 0xd0]
lea ecx, [esp + 0xf8]
mov dword [esp + 0x90], 0
cmovae edx, esi
mov dword [esp + 0xa0], 0
cmp dword [esp + 0x10c], 8
mov esi, 7
mov dword [esp + 0x18], edx
cmovae ecx, dword [esp + 0xf8]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0xe0]
add ecx, eax
mov dword [esp + 0xa4], 0
mov dword [esp + 0x14], ecx
lea eax, [esp + 0x90]
mov dword [esp + 0xc], eax
cmp ecx, esi
jbe 0x4015da
mov esi, ecx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x401563
mov esi, 0x7ffffffe
mov eax, 0xfffffffe
jmp 0x401585
cmp esi, 0xa
mov eax, 0xa
cmovb esi, eax
lea eax, [esi + 1]
cmp eax, 0x7fffffff
ja 0x401989
add eax, eax
cmp eax, 0x1000
jb 0x4015b6
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x401989
push ecx
call fcn.00401e44
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x40198e
mov edx, dword [esp + 0x18]
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
mov ecx, dword [esp + 0x14]
jmp 0x4015cf
test eax, eax
je 0x4015cd
push eax
call fcn.00401e44
mov ecx, dword [esp + 0x18]
add esp, 4
mov edx, dword [esp + 0x18]
jmp 0x4015cf
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0xa0], ecx
mov ecx, dword [esp + 0xe0]
mov dword [esp + 0xa4], esi
lea esi, [ecx + ecx]
push esi
push edx
push eax
call fcn.00403660
mov eax, dword [esp + 0x5c]
add esp, 0xc
add eax, eax
push eax
mov eax, dword [esp + 0x10]
push dword [esp + 0x24]
add eax, esi
push eax
call fcn.00403660
mov eax, dword [esp + 0x18]
xor edx, edx
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov word [eax + ecx*2], dx
mov esi, dword [esp + 0xa4]
mov eax, esi
mov edx, dword [esp + 0xa0]
sub eax, edx
cmp eax, 1
jb 0x401670
cmp esi, 8
lea eax, [esp + 0x90]
lea ecx, [edx + 1]
mov esi, 0x5c
cmovae eax, dword [esp + 0x90]
mov dword [esp + 0xa0], ecx
mov word [eax + edx*2], si
xor edx, edx
mov word [eax + ecx*2], dx
lea eax, [esp + 0x90]
jmp 0x40168e
push 1
push 0x411c88
mov byte [esp + 0x5c], 0
lea ecx, [esp + 0x98]
push dword [esp + 0x5c]
push 1
call fcn.00401b70
mov dword [esp + 0x30], 0
xor ecx, ecx
mov dword [esp + 0x40], 0
mov edx, edi
mov dword [esp + 0x44], 0
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x30], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esp + 0x40], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
cmp dword [edi + 0x14], 8
jb 0x4016d6
mov edx, dword [edi]
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
mov ecx, dword [edi + 0x10]
sub eax, esi
mov dword [esp + 0x20], esi
cmp ecx, eax
ja 0x401725
cmp dword [esp + 0x44], 8
lea edi, [esi + ecx]
lea eax, [ecx + ecx]
mov dword [esp + 0x40], edi
push eax
mov eax, dword [esp + 0x24]
lea esi, [esp + 0x34]
cmovae esi, dword [esp + 0x34]
push edx
lea eax, [esi + eax*2]
push eax
call fcn.00403660
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
lea eax, [esp + 0x30]
mov edi, dword [esp + 0x10]
jmp 0x40173a
push ecx
push edx
mov byte [esp + 0x60], 0
push dword [esp + 0x60]
push ecx
lea ecx, [esp + 0x40]
call fcn.00401b70
movups xmm0, xmmword [eax]
xor ecx, ecx
movq xmm1, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea eax, [esp + 0x60]
movaps xmmword [esp + 0x80], xmm0
movaps xmmword [esp + 0x60], xmm0
movq qword [esp + 0x20], xmm1
movq qword [esp + 0x70], xmm1
cmp edi, eax
je 0x4017ce
mov ecx, dword [edi + 0x14]
cmp ecx, 8
jb 0x4017bd
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x4017a5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40198e
mov eax, edx
push ecx
push eax
call fcn.00401f89
movaps xmm0, xmmword [esp + 0x88]
add esp, 8
movq xmm1, qword [esp + 0x20]
mov dword [edi + 0x10], 0
movups xmmword [edi], xmm0
movq qword [edi + 0x10], xmm1
jmp 0x40180a
mov edx, dword [esp + 0x74]
cmp edx, 8
jb 0x40180a
mov ecx, dword [esp + 0x60]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401800
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40198e
push edx
push ecx
call fcn.00401f89
add esp, 8
mov edx, dword [esp + 0x44]
cmp edx, 8
jb 0x401846
mov ecx, dword [esp + 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40183c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40198e
push edx
push ecx
call fcn.00401f89
add esp, 8
mov edx, dword [esp + 0xa4]
xor eax, eax
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 7
mov word [esp + 0x30], ax
cmp edx, 8
jb 0x40189f
mov ecx, dword [esp + 0x90]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401895
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40198e
push edx
push ecx
call fcn.00401f89
add esp, 8
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4018a9
mov eax, dword [edi]
push 1
push 0
push 0
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [esp + 0x1c]
add edi, 0x18
inc ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], ecx
cmp ecx, 3
jge 0x4018df
mov esi, dword [esp + 0xd0]
mov ecx, dword [esp + 0x5c]
jmp 0x4014c0
push 0x4019a0
push 3
push 0x18
lea eax, [esp + 0x104]
push eax
call fcn.00401e74
mov esi, dword [esp + 0xd0]
mov eax, dword [esp + 0xe4]
cmp eax, 8
jb 0x401933
lea ecx, [eax*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x401929
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40198e
push ecx
push esi
call fcn.00401f89
add esp, 8
mov edx, dword [esp + 0xcc]
cmp edx, 8
jb 0x401971
mov ecx, dword [esp + 0xb8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401967
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40198e
push edx
push ecx
call fcn.00401f89
add esp, 8
mov ecx, dword [esp + 0x34c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00401e36
mov esp, ebp
pop ebp
ret 0x10
call fcn.004010b0
call fcn.00403dcc
call fcn.00401150
call fcn.00401b60
int3