Function at 0x402200
Capabilities:
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41cb50
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2adc
call fcn.00405ba0
mov eax, dword [0x42daa8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
movzx eax, word [ebp + 8]
mov dword [ebp - 0x2a54], eax
push ecx
mov ecx, esp
mov dword [ebp - 0x2adc], esp
push 0x41d3ec
call fcn.004011f0
mov dword [ebp - 0x2ac4], eax
call fcn.00403110
add esp, 4
mov dword [ebp - 0x2a60], eax
mov ecx, dword [ebp - 0x2a60]
push ecx
mov edx, dword [ebp - 0x2a54]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x2a28], eax
mov eax, dword [ebp - 0x2a28]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x2a5c], eax
mov ecx, dword [ebp - 0x2a5c]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x2a7c], eax
mov edx, dword [ebp - 0x2a28]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x2a74], eax
mov dword [ebp - 0x2a24], 0
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 0x2a24], eax
mov dword [ebp - 0x2a64], 0
push 0x42ea20
push 0
push str.dfss
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov dword [ebp - 0x2a64], eax
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push 0x42ea20
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2a2c], eax
mov dword [ebp - 0x2a6c], 0
push 0
lea edx, [ebp - 0x2a6c]
push edx
mov eax, dword [ebp - 0x2a74]
push eax
mov ecx, dword [ebp - 0x2a7c]
push ecx
mov edx, dword [ebp - 0x2a2c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x2a2c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
mov ecx, esp
mov dword [ebp - 0x2acc], esp
push str.SOFTWAREMicrosoftNET_Framework_SetupNDP_v4
call fcn.00401270
mov dword [ebp - 0x2ad4], eax
call fcn.00403110
add esp, 4
mov dword [ebp - 0x2a38], eax
mov ecx, dword [ebp - 0x2a38]
push ecx
call fcn.004019a0
add esp, 4
mov byte [ebp - 0x2a1d], al
movzx edx, byte [ebp - 0x2a1d]
test edx, edx
je 0x402563
mov byte [ebp - 4], 1
push 0x41d45c
push ecx
mov ecx, esp
mov dword [ebp - 0x2a80], esp
push 0x41d460
call fcn.00401270
mov dword [ebp - 0x2ae4], eax
call fcn.00403110
add esp, 4
mov dword [ebp - 0x2a78], eax
mov eax, dword [ebp - 0x2a78]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x2aec], esp
push 0x41d47c
call fcn.00401270
mov dword [ebp - 0x2a88], eax
call fcn.00403110
add esp, 4
mov dword [ebp - 0x2a40], eax
mov ecx, dword [ebp - 0x2a40]
push ecx
push 0x42ea20
push ecx
mov ecx, esp
mov dword [ebp - 0x2ae0], esp
push 0x41d4a8
call fcn.00401270
mov dword [ebp - 0x2a90], eax
call fcn.00403110
add esp, 4
mov dword [ebp - 0x2a30], eax
mov edx, dword [ebp - 0x2a30]
push edx
call fcn.00401ec0
add esp, 0x14
mov ecx, 0x1f4
mov esi, 0x41d4c0
lea edi, [ebp - 0x1a1c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
push 0x2f
push 0
lea eax, [ebp - 0x124b]
push eax
call fcn.00405bd0
add esp, 0xc
jmp 0x40254e
mov dword [ebp - 4], 0
jmp 0x40255e
jmp 0x40272c
mov ecx, 0x1f4
mov esi, 0x41e4d8
lea edi, [ebp - 0x221c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
push 0x2f
push 0
lea edx, [ebp - 0x1a4b]
push edx
call fcn.00405bd0
add esp, 0xc
mov byte [ebp - 4], 3
push 0x41ecf8
push ecx
mov ecx, esp
mov dword [ebp - 0x2ae8], esp
push 0x41ed10
call fcn.00401270
mov dword [ebp - 0x2ab0], eax
call fcn.00403110
add esp, 4
mov dword [ebp - 0x2a68], eax
mov eax, dword [ebp - 0x2a68]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x2ad0], esp
push 0x41ed40
call fcn.00401270
mov dword [ebp - 0x2ab8], eax
call fcn.00403110
add esp, 4
mov dword [ebp - 0x2a58], eax
mov ecx, dword [ebp - 0x2a58]
push ecx
push 0x42ea20
push ecx
mov ecx, esp
mov dword [ebp - 0x2a84], esp
push 0x41ed78
call fcn.00401270
mov dword [ebp - 0x2a8c], eax
call fcn.00403110
add esp, 4
mov dword [ebp - 0x2a34], eax
mov edx, dword [ebp - 0x2a34]
push edx
call fcn.00401ec0
add esp, 0x14
mov ecx, 0x1f4
mov esi, 0x41edc0
lea edi, [ebp - 0x121c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
push 0x2f
push 0
lea eax, [ebp - 0xa4b]
push eax
call fcn.00405bd0
add esp, 0xc
jmp 0x40271c
mov dword [ebp - 4], 0
jmp 0x40272c
jmp 0x402734
mov dword [ebp - 4], 0xffffffff
jmp 0x402744
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00405736
mov esp, ebp
pop ebp
ret