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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x40b014]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x104
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
xor ecx, ecx
mov al, byte [ebp + ecx - 0x108]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x20d], al
test al, al
jne 0x401650
mov ecx, dword [0x411a2c]
lea eax, [ebp - 0x108]
push ebx
push esi
mov esi, dword [sym.imp.mfc140.dll_Ordinal_7782]
push edi
push 0x104
push eax
call esi
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401690
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
mov edi, 0x104
sub ecx, edx
mov eax, edi
sub eax, ecx
push str._libhook.dll
push eax
lea eax, [ebp - 0x108]
push eax
call ebx
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
push str._s_s
push 0x40bb50
call fcn.00405530
mov ecx, dword [0x411a2c]
lea eax, [ebp - 0x108]
add esp, 0x1c
push edi
push eax
call esi
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4016f0
sub ecx, edx
mov eax, edi
sub eax, ecx
push str._skinh.dll
push eax
lea eax, [ebp - 0x108]
push eax
call ebx
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
push str._s_s
push 0x40ba48
call fcn.00405530
mov ecx, dword [0x411a2c]
lea eax, [ebp - 0x108]
add esp, 0x1c
push 0x104
push eax
call esi
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401750
sub ecx, edx
lea eax, [ebp - 0x108]
push str._skinh.she
sub edi, ecx
push edi
push eax
call ebx
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
push str._s_s
push 0x40b940
call fcn.00405530
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0x1c
push 0x40bb50
call esi
push 0x40ba48
call esi
push 0x40b940
call esi
push str.MyRc_libhook
push str.129
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x401986
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
push edi
mov ebx, eax
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
push edi
push esi
push ebx
call sub.VCRUNTIME140.dll_memcpy
push 0x4078dc
push 0x40bb50
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov esi, eax
add esp, 0x24
test esi, esi
je 0x401986
push esi
push edi
push 1
push ebx
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
call ebx
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
push esi
call edi
add esp, 0x14
push str.MyRc_PF
push str.130
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x210], eax
test eax, eax
je 0x401970
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push dword [ebp - 0x210]
mov esi, eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
mov dword [ebp - 0x214], eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
push dword [ebp - 0x214]
mov dword [ebp - 0x210], eax
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push dword [ebp - 0x214]
push esi
push dword [ebp - 0x210]
call sub.VCRUNTIME140.dll_memcpy
push 0x4078dc
push 0x40ba48
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov esi, eax
add esp, 0x24
test esi, esi
je 0x401970
push esi
push dword [ebp - 0x214]
push 1
push dword [ebp - 0x210]
call ebx
push esi
call edi
add esp, 0x14
push str.MyRc_PF
push str.131
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x40195a
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
push edi
push 0
push eax
mov dword [ebp - 0x210], eax
call sub.VCRUNTIME140.dll_memset
push edi
push esi
push dword [ebp - 0x210]
call sub.VCRUNTIME140.dll_memcpy
push 0x4078dc
push 0x40b940
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov esi, eax
add esp, 0x24
test esi, esi
je 0x40195a
push esi
push edi
push 1
push dword [ebp - 0x210]
call ebx
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004059ab
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xfffffffd
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004059ab
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004059ab
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004059ab
mov esp, ebp
pop ebp
ret