Function at 0x401090
Capabilities:
Create process on windows
Delete file
Extract resource via kernel32 functions
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406ba0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x11f0
call fcn.00401830
push ebx
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x25f]
mov byte [ebp - 0x260], 0
mov byte [ebp - 0x15c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x15b]
mov dword [ebp - 0x10], esp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x260]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [ebp - 0x260]
push eax
push ecx
lea edx, [ebp - 0x15c]
push str._s_08X.exe
push edx
call fcn.004014ec
add esp, 0x10
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, dword [ebp + 8]
push 0x408098
push 0x82
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push ebx
push edi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4012c2
test esi, esi
je 0x4012c2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
mov ecx, 0x1f3
xor eax, eax
lea edi, [ebp - 0xa2f]
mov byte [ebp - 0xa30], 0
mov byte [ebp - 0x1200], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x1f3
xor eax, eax
lea edi, [ebp - 0x11ff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edi, [esi + 1]
push edi
call fcn.004014de
mov ecx, edi
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push esi
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp - 0x18]
push eax
push ebx
call fcn.004013e0
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0xa30]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor edx, edx
rep movsb byte es:[edi], byte [esi]
mov cl, 0x24
mov eax, dword [ebp - 0x14]
lea esi, [eax - 1]
cmp edx, esi
jae 0x40121c
cmp byte [edx + ebx], cl
jne 0x401219
cmp byte [edx + ebx + 1], cl
je 0x40121c
inc edx
jmp 0x401204
dec eax
cmp edx, eax
jae 0x40127c
mov ecx, 0x1f4
xor eax, eax
lea edi, [ebp - 0xa30]
lea esi, [ebp - 0x1200]
rep stosd dword es:[edi], eax
mov ecx, 0x1f4
lea edi, [ebp - 0x1200]
rep stosd dword es:[edi], eax
lea edi, [edx + ebx + 2]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [ebp - 0x14], esi
mov eax, ecx
mov esi, edi
mov edi, dword [ebp - 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
mov esi, ebx
lea edi, [ebp - 0xa30]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0xa30]
push eax
push 1
push str.DealerInfo
push str.SoftwareShilingtongGnet_pppoe2_systemset_
push 0x80000001
call fcn.00401020
lea ecx, [ebp - 0x1200]
push ecx
push 1
push str.ActivationReportAddress
push str.SoftwareShilingtongGnet_pppoe2_systemset_
push 0x80000001
call fcn.00401020
push ebx
call fcn.004013d0
mov edi, dword [ebp + 8]
add esp, 0x2c
push 0x408040
push 0x81
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4013b9
cmp ebx, 0x7530
jbe 0x4013b9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0
push 0x80
push 2
push 0
push 2
lea edx, [ebp - 0x15c]
push 0x40000000
push edx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x4013b9
cmp esi, 0xffffffff
je 0x4013b9
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x1c]
push 0
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0xe
xor eax, eax
lea edi, [ebp - 0x54]
lea edx, [ebp - 0x58]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x15c]
push edx
mov dword [ebp - 0x58], 0x3c
mov dword [ebp - 0x54], 0x40
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], 0x40aa30
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], 5
mov dword [ebp - 0x38], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov eax, dword [ebp - 0x20]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 0x15c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret