Function at 0x4017d0
Capabilities:
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412ba8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x417020]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x34], eax
push str.BASIC_RC
movzx eax, word [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x401824
xor eax, eax
jmp 0x401a6d
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
je 0x401841
cmp dword [ebp - 0x28], 0
jne 0x401848
xor eax, eax
jmp 0x401a6d
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x401862
xor eax, eax
jmp 0x401a6d
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x401880
xor eax, eax
jmp 0x401a6d
mov dword [ebp - 0x1c], 5
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x4c], 0
jmp 0x4018a7
mov ecx, dword [ebp - 0x4c]
add ecx, 1
mov dword [ebp - 0x4c], ecx
cmp dword [ebp - 0x4c], 8
jge 0x4018d1
mov edx, dword [ebp - 0x38]
add edx, dword [ebp - 0x4c]
movzx eax, byte [edx + 5]
cdq
mov ecx, dword [ebp - 0x4c]
shl ecx, 3
call fcn.00411d30
or eax, dword [ebp - 0x24]
or edx, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edx
jmp 0x40189e
mov eax, dword [ebp - 0x24]
add eax, 1
mov ecx, dword [ebp - 0x20]
adc ecx, 0
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0x68]
or edx, dword [ebp - 0x64]
je 0x40190c
push 4
push 0x3000
mov eax, dword [ebp - 0x24]
add eax, 2
mov ecx, dword [ebp - 0x20]
adc ecx, 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x6c], eax
jmp 0x401913
mov dword [ebp - 0x6c], 0
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x48], edx
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x44]
call fcn.00402630
mov dword [ebp - 4], 0
cmp dword [ebp - 0x48], 0
jne 0x401950
mov dword [ebp - 0x50], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00402660
mov eax, dword [ebp - 0x50]
jmp 0x401a6d
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x48]
mov byte [edx + ecx], 0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x2c]
sub ecx, 0xd
mov dword [ebp - 0x30], ecx
push 5
mov edx, dword [ebp - 0x38]
push edx
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x38]
add ecx, 0xd
push ecx
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x48]
push eax
call fcn.00403130
test eax, eax
je 0x4019a9
mov dword [ebp - 0x54], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00402660
mov eax, dword [ebp - 0x54]
jmp 0x401a6d
mov dword [ebp - 0x18], 0
push 0x41562c
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x18]
push edx
call fcn.004061d3
add esp, 0xc
test eax, eax
je 0x4019e7
mov dword [ebp - 0x58], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00402660
mov eax, dword [ebp - 0x58]
jmp 0x401a6d
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
push 1
mov edx, dword [ebp - 0x48]
push edx
call fcn.0040676b
add esp, 0x10
xor ecx, ecx
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], ecx
mov edx, dword [ebp - 0x74]
cmp edx, dword [ebp - 0x24]
jne 0x401a23
mov eax, dword [ebp - 0x70]
cmp eax, dword [ebp - 0x20]
jne 0x401a23
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.0040699a
add esp, 4
jmp 0x401a54
mov edx, dword [ebp - 0x18]
push edx
call fcn.0040699a
add esp, 4
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x5c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00402660
mov eax, dword [ebp - 0x5c]
jmp 0x401a6d
mov dword [ebp - 0x60], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00402660
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret