Function at 0x401ac9
Capabilities:
Extract resource via kernel32 functions
Get common file path
Read file via mapping

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x4140dc]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x48
mov eax, 0x40f682
call fcn.00402b9b
movzx edi, word [ebp + 0x214]
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x18], esp
xor esi, esi
push 0x410388
mov dword [ebp - 4], esi
call fcn.00401aa7
call fcn.0040190b
add esp, 0x1c
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push esi
mov dword [ebp - 0x54], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x20], eax
lea eax, [ebp]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ebx, 0x415580
push ebx
push esi
push str.gfdfgd
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
fld1
fst qword [ebp - 0x50]
mov eax, str.5321
fld qword [0x410570]
push eax
fstp qword [ebp - 0x48]
mov edi, eax
fld qword [0x410568]
fst qword [ebp - 0x40]
fstp qword [ebp - 0x38]
fstp qword [ebp - 0x30]
fld qword [0x410560]
fstp qword [ebp - 0x28]
call fcn.00402bfb
pop ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x1c], eax
jge 0x401c21
movsx eax, byte [edi]
sub eax, 0x34
je 0x401bf6
dec eax
dec eax
je 0x401bd4
dec eax
dec eax
jne 0x401c19
fild dword [ebp - 0x14]
sub esp, 0x10
fld1
lea eax, [ebp - 0x38]
fdivrp st(1)
fstp qword [esp + 8]
fldz
fstp qword [esp]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.004012e8
jmp 0x401c16
fild dword [ebp - 0x14]
sub esp, 0x10
fld1
lea eax, [ebp - 0x38]
fdivrp st(1)
fstp qword [esp + 8]
fldz
fstp qword [esp]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.004011bd
jmp 0x401c16
fild dword [ebp - 0x14]
sub esp, 0x10
fld1
lea eax, [ebp - 0x38]
fdivrp st(1)
fstp qword [esp + 8]
fldz
fstp qword [esp]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.004010da
add esp, 0x18
inc dword [ebp - 0x1c]
jmp 0x401b9a
push esi
push 0x80
push 2
push esi
push esi
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
push dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
push esi
push 4
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push esi
push esi
push esi
mov edi, eax
push 2
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x54]
push eax
call fcn.00402c10
add esp, 0xc
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x18]
call edi
xor edi, edi
cmp edi, dword [ebp - 0x14]
jge 0x401d0d
mov eax, str.5321
movsx eax, byte [eax]
sub eax, 0x34
je 0x401ce4
dec eax
dec eax
je 0x401cc2
dec eax
dec eax
jne 0x401d07
fild dword [ebp - 0x14]
sub esp, 0x10
fld1
lea eax, [ebp - 0x38]
fdivrp st(1)
fstp qword [esp + 8]
fldz
fstp qword [esp]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.004012e8
jmp 0x401d04
fild dword [ebp - 0x14]
sub esp, 0x10
fld1
lea eax, [ebp - 0x38]
fdivrp st(1)
fstp qword [esp + 8]
fldz
fstp qword [esp]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.004011bd
jmp 0x401d04
fild dword [ebp - 0x14]
sub esp, 0x10
fld1
lea eax, [ebp - 0x38]
fdivrp st(1)
fstp qword [esp + 8]
fldz
fstp qword [esp]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.004010da
add esp, 0x18
inc edi
jmp 0x401c82
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.SOFTWAREMicrosoftNET_Framework_SetupNDP_v4
call fcn.00401aa7
call fcn.0040190b
add esp, 0x1c
push eax
call fcn.00401065
pop ecx
test al, al
je 0x401e0f
cmp esi, dword [ebp - 0x14]
jge 0x401dc1
mov eax, str.5321
movsx eax, byte [eax]
sub eax, 0x34
je 0x401d98
dec eax
dec eax
je 0x401d76
dec eax
dec eax
jne 0x401dbb
fild dword [ebp - 0x14]
sub esp, 0x10
fld1
lea eax, [ebp - 0x38]
fdivrp st(1)
fstp qword [esp + 8]
fldz
fstp qword [esp]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.004012e8
jmp 0x401db8
fild dword [ebp - 0x14]
sub esp, 0x10
fld1
lea eax, [ebp - 0x38]
fdivrp st(1)
fstp qword [esp + 8]
fldz
fstp qword [esp]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.004011bd
jmp 0x401db8
fild dword [ebp - 0x14]
sub esp, 0x10
fld1
lea eax, [ebp - 0x38]
fdivrp st(1)
fstp qword [esp + 8]
fldz
fstp qword [esp]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.004010da
add esp, 0x18
inc esi
jmp 0x401d36
push 0x4103d8
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0x4103dc
call fcn.00401aa7
call fcn.0040190b
add esp, 0x1c
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0x4103ec
call fcn.00401aa7
call fcn.0040190b
add esp, 0x1c
push eax
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.v4.0.30319
jmp 0x401ee3
cmp esi, dword [ebp - 0x14]
jge 0x401e9a
mov eax, str.5321
movsx eax, byte [eax]
sub eax, 0x34
je 0x401e71
dec eax
dec eax
je 0x401e4f
dec eax
dec eax
jne 0x401e94
fild dword [ebp - 0x14]
sub esp, 0x10
fld1
lea eax, [ebp - 0x38]
fdivrp st(1)
fstp qword [esp + 8]
fldz
fstp qword [esp]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.004012e8
jmp 0x401e91
fild dword [ebp - 0x14]
sub esp, 0x10
fld1
lea eax, [ebp - 0x38]
fdivrp st(1)
fstp qword [esp + 8]
fldz
fstp qword [esp]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.004011bd
jmp 0x401e91
fild dword [ebp - 0x14]
sub esp, 0x10
fld1
lea eax, [ebp - 0x38]
fdivrp st(1)
fstp qword [esp + 8]
fldz
fstp qword [esp]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.004010da
add esp, 0x18
inc esi
jmp 0x401e0f
push 0x410410
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0x410414
call fcn.00401aa7
call fcn.0040190b
add esp, 0x1c
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.RemoteProcess.Program
call fcn.00401aa7
call fcn.0040190b
add esp, 0x1c
push eax
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0x41043c
call fcn.00401aa7
call fcn.0040190b
add esp, 0x1c
push eax
call fcn.0040158b
add esp, 0x14
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.00402b59
add ebp, 0x20c
leave
ret