Function at 0x40d7f4
Capabilities:
Extract resource via kernel32 functions
Set registry value
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40da6e
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0040d6b8
mov byte [ebp - 5], al
cmp byte [ebp - 5], 0
jne 0x40da4b
mov eax, dword [0x493c88]
call fcn.00403e0c
mov dword [ebp - 0xc], eax
push 0xa
push 1
push 0
call sub.kernel32.dll_FindResourceA
mov ebx, eax
push ebx
push 0
call sub.kernel32.dll_LoadResource
push eax
call sub.kernel32.dll_LockResource
mov dword [ebp - 0x24], eax
push ebx
push 0
call sub.kernel32.dll_SizeofResource
mov edi, eax
lea edx, [ebp - 4]
mov eax, dword [0x493c8c]
call fcn.0040d230
push edi
push 0
call sub.kernel32.dll_LocalAlloc_2
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 4]
call fcn.004052b0
mov esi, dword [ebp - 0x28]
mov ebx, edi
dec ebx
test ebx, ebx
jl 0x40d898
inc ebx
mov eax, 0xff
call fcn.00402824
mov byte [esi], al
inc esi
dec ebx
jne 0x40d888
push 0
push 1
push 2
push 0
push 0
push 0x40000000
mov eax, dword [ebp - 4]
call fcn.00403e0c
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40da4b
test ebx, ebx
je 0x40da4b
push 0
lea eax, [ebp - 0x18]
push eax
push edi
mov eax, dword [ebp - 0x28]
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x40da4b
cmp edi, dword [ebp - 0x18]
jne 0x40da4b
push ebx
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 4]
call fcn.004052b0
push 0xfa
call sub.kernel32.dll_Sleep
push 0
push 1
push 2
push 0
push 0
push 0x40000000
mov eax, dword [ebp - 4]
call fcn.00403e0c
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40da4b
test ebx, ebx
je 0x40da4b
push 0
lea eax, [ebp - 0x18]
push eax
push edi
mov eax, dword [ebp - 0x24]
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x40da4b
cmp edi, dword [ebp - 0x18]
jne 0x40da4b
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, 0x40da88
call fcn.00403c58
mov dword [ebp - 0x14], 3
mov dword [ebp - 0x10], 1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 0xc]
call fcn.00403bb8
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x30]
mov edx, 0x40da98
call fcn.00403c58
mov eax, dword [ebp - 0x30]
call fcn.00403e0c
push eax
push 0x80000002
call sub.advapi32.dll_RegCreateKeyExA
push 4
lea eax, [ebp - 0x20]
push eax
push 4
push 0
push 0x40dabc
mov eax, dword [ebp - 0x2c]
push eax
call sub.advapi32.dll_RegSetValueExA
mov eax, dword [ebp - 4]
call fcn.00403c0c
push eax
lea eax, [ebp - 4]
call fcn.00403e5c
push eax
push 2
push 0
push 0x40dacc
mov eax, dword [ebp - 0x2c]
push eax
call sub.advapi32.dll_RegSetValueExA
push 4
lea eax, [ebp - 0x14]
push eax
push 4
push 0
push 0x40dad8
mov eax, dword [ebp - 0x2c]
push eax
call sub.advapi32.dll_RegSetValueExA
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push 0
push 0x40dae0
mov eax, dword [ebp - 0x2c]
push eax
call sub.advapi32.dll_RegSetValueExA
mov eax, dword [ebp - 0x2c]
push eax
call sub.advapi32.dll_RegCloseKey_1
call fcn.0040d6f8
mov byte [ebp - 5], al
cmp byte [ebp - 5], 0
jne 0x40da4b
mov eax, dword [ebp - 4]
call fcn.004052b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40da75
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.00403aac
lea eax, [ebp - 4]
call fcn.00403a88
ret