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

Disassembly:
sub esp, 0x24
push ebp
mov ebp, dword [esp + 0x34]
push esi
push edi
call fcn.00442f33
mov esi, dword [eax + 0xc]
movzx eax, word [esp + 0x34]
push 0x479298
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x4181a3
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4181a3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
mov dword [esp + 0x34], eax
je 0x4181a3
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
mov dword [esp + 0xc], edi
je 0x4181a3
mov eax, dword [esp + 0x38]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x417f80
sub eax, edx
push ebx
mov ebx, eax
xor eax, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], eax
jmp 0x417fa0
cmp eax, 3
ja case.default.0x417fa9
jmp dword [eax*4 + 0x4181ac]
cmp byte [ebp], 0
je 0x41817b
push 0x5c
push ebp
call fcn.00455c50
add esp, 8
test eax, eax
je 0x41817b
mov byte [eax + 1], 0
jmp 0x41803f
call fcn.00442f33
mov eax, dword [eax + 8]
mov esi, 0x800
sub esi, ebx
push esi
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x41817b
cmp eax, esi
ja 0x41817b
jmp 0x417fba
mov esi, 0x7ff
sub esi, ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x41817b
cmp eax, esi
jbe 0x41803f
jmp 0x41817b
mov esi, 0x7ff
sub esi, ebx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x41800c
mov ecx, 0x800
mov eax, 0x4792a0
mov edx, ebp
call fcn.00416b40
cmp byte [ebp], 0
je 0x41817b
push 0x800
mov eax, ebp
call fcn.00416c20
mov eax, dword [esp + 0x40]
mov ecx, 0x800
mov edx, ebp
call fcn.00416b70
lea ecx, [esp + 0x24]
push ecx
push ebp
call fcn.004181c0
add esp, 0xc
test al, al
je 0x41812a
cmp dword [esp + 0x2c], edi
jne 0x418113
cmp edi, 4
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x28]
mov eax, edi
jb 0x4180a8
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x4180ac
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x418094
test eax, eax
je 0x418109
movzx edi, byte [ecx]
movzx esi, byte [edx]
sub esi, edi
jne 0x4180fb
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x418109
movzx edi, byte [ecx]
movzx esi, byte [edx]
sub esi, edi
jne 0x4180fb
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x418109
movzx edi, byte [ecx]
movzx esi, byte [edx]
sub esi, edi
jne 0x4180fb
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x418109
movzx eax, byte [ecx]
movzx esi, byte [edx]
sub esi, eax
je 0x418109
test esi, esi
mov eax, 1
jg 0x41810b
or eax, 0xffffffff
jmp 0x41810b
xor eax, eax
test eax, eax
jne 0x418113
mov bl, 1
jmp 0x418115
xor bl, bl
lea esi, [esp + 0x20]
call fcn.004182f0
test bl, bl
jne 0x418199
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
push 0x80
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push 0x8000080
push 2
push 0
push 1
push 0x40000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x41817b
mov edx, dword [esp + 0x38]
push 0
lea ecx, [esp + 0x20]
push ecx
push edi
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x418199
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
add eax, 1
cmp eax, 5
mov dword [esp + 0x14], eax
jl 0x417fa0
pop ebx
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x24
ret
pop ebx
pop edi
pop esi
mov al, 1
pop ebp
add esp, 0x24
ret
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x24
ret